Raster Annotation
Updated at January 14th, 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.
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.
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"}
...
}
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. | |||||||