site/content/en/docs/annotation/manual-annotation/utilities/slice-and-join.md
In CVAT you can modify shapes by either joining multiple shapes into a single label or slicing a single label into several shapes.
This document provides guidance on how to perform these operations effectively.
See:
The Join tool () works with both polygon and mask annotations.
This tool is useful in scenarios where a single object in an image is annotated with multiple shapes, and there is a need to merge these shapes into a single one. For polygons, you can join overlapping polygons or polygons that share at least one edge.
To join polygons or masks, do the following:
Upon completion, the selected shapes will be merged.
Notes about polygon merging:
{{% alert title="Tip" %}} The {{< ilink "/docs/annotation/manual-annotation/shapes/annotation-with-polygons/snap-tools" "Snap tools" >}} can help the join operation work best by making polygon borders and vertices align more precisely. {{% /alert %}}
The Slice mask/polygon () is compatible with both mask and polygon annotations.
This tool is useful in scenarios where multiple objects in an image are annotated with one shape, and there is a need to slice this shape into multiple parts.
{{% alert title="Note" color="primary" %}} The shape can be sliced only in two parts at a time. Use the slice tool several times to split a shape to as many parts as you need. {{% /alert %}}
To slice mask or polygon, do the following:
Hold Shift to add points automatically on cursor movement.
Note: The line cannot cross itself.
Note: The line cannot cross the contour more than twice. 5. (Optional)> Right-click to cancel the latest point. 6. Click on the contour (Alt+J) (outside the contour) to finalize the slicing.