site/content/en/docs/annotation/manual-annotation/shapes/annotation-with-polygons/creating-mask.md
Currently, CVAT does not support cutting transparent holes in polygons. However, it is possible to generate holes in exported instance and class masks. To do this, one needs to define a background class in the task and draw holes with it as additional shapes above the shapes needed to have holes:
The editor window:
Remember to use z-axis ordering for shapes by [-] and [+, =] keys.
Exported masks:
Notice that it is currently impossible to have a single instance number for internal shapes (they will be merged into the largest one and then covered by "holes").
There are several formats in CVAT that can be used to export masks:
Segmentation Mask (PASCAL VOC masks)CamVidMOTSICDARCOCO (RLE-encoded instance masks, {{< ilink "/docs/dataset_management/formats/format-coco" "guide" >}})DatumaroAn example of exported masks (in the Segmentation Mask format):
Important notices:
All the labels have associated colors, which are used in the generated masks. These colors can be changed in the task label properties:
Label colors are also displayed in the annotation window on the right panel, where you can show or hide specific labels (only the presented labels are displayed):
A background class can be:
background class with any color (has a priority, name is case-insensitive)To change background color in generated masks (default is black),
change background class color to the desired one.