Copied
Docs

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

EMPLOYEE LOGIN
  • Home
  • Getting Started
  • Annotate
  • Tasks
  • API
  • Recipes
  • Tutorials
  • Integrations

Raster Annotation

Updated at January 22nd, 2025

Raster annotation is a process used to assign a category to each pixel in an image. This technique is commonly employed in various fields, such as computer vision, remote sensing, and medical imaging, to create precise and structured datasets for training machine learning models.

What Is Raster Annotation?

Raster annotation involves labeling each pixel in an image with a specific category. Initially, all pixels are assigned a “no label” category. The annotation process consists of systematically assigning categories to the pixels corresponding to different objects or regions in the image. The result is a labeled mask that represents the categorization of every pixel in the image.

Tools for Raster Annotation

To perform raster annotation effectively, we use several tools:

  • Paintbrush: Allows manual pixel-by-pixel labeling, providing precise control for detailed annotation tasks.
  • Fill: Automatically labels connected regions of pixels with the same category, speeding up the annotation of uniform areas.
  • Superpixel: Divides the image into clusters of pixels (superpixels) based on similarity, enabling efficient labeling of larger regions while preserving image structure.

 

Raster Mask

The output of this type of annotation takes the form of a greyscale PNG mask for each image, where the value of a pixel represents the category to which it has been assigned.

trafgsndmj

The location of the raster mask image is listed in the output JSON file under the mask_url key:

Annotation Output

Review the recipe to see the full JSON

...
"layers":{
           "raster_coding":{
              "mask_url":"https://mask-image.png"}
...
}

Download the mask

If you have been provided with the right credentials, you can download the mask using the AWS CLI. You can also use our API.

aws s3api get-object --bucket samahub3 --key "clients/23/external/projects/8616/tasks/6125acb53928ed00e6fc55fa/outputs/Image Raster/d1bdde4b-3d01-47d3-8536-4952eb871969.png" raster-mask.png
                
             
The linked Colab notebook contains Python code that shows you how to get your latest deliveries, get temporary AWS credentials, and download the raster masks. 
             
tagging tools labeling tools marking notation annotation semantic segmentation

Was this article helpful?

Yes
No
Give feedback about this article
Tools for Raster Annotation Raster Mask Annotation Output Download the mask

The first B Corp-certified AI company

  • Security
  • Terms
  • Privacy
  • Quality & Information

Copyright © 2023 Samasource Impact Sourcing, Inc. All rights reserved.


Knowledge Base Software powered by Helpjuice

Expand