Brush Tool
Learn how to annotate objects of any complexity by creating freeform outlines using the Brush annotation tool.
Last updated
Learn how to annotate objects of any complexity by creating freeform outlines using the Brush annotation tool.
Last updated
The Brush tool is an essential image segmentation tool, specifically designed for creating free-form and independent segmentation masks. With flexible customizable parameters such as size scaling, this tool is ideal for a wide range of segmentation tasks, from outlining complex objects to simpler selections.
The Brush tool is ideal for scenarios involving atypical shapes, such as the decay of a leaf, as well as more straightforward tasks, such as selecting circular objects, like road signs.
Also noteworthy is the benefit of collaboration with other tools, such as the Pen tool. Each tool can complement the functionality of the other, maximizing the ease and accuracy of the segmentation process.
The Brush Tool offers three different modes to provide flexibility in how you annotate and edit objects in an image:
Overlay (Default Mode)
In this mode, you can draw on top of existing masks without altering them. The new brush strokes will be layered over the current segmentation, allowing you to create additional details or overlapping annotations without changing the original mask.
Overwrite
This mode replaces the pixels of existing masks with any overlapping brush strokes. When you draw over an area already covered by another mask, the Brush Tool will overwrite it, making it ideal for correcting or refining existing segmentations.
Preserve
In Preserve mode, the Brush Tool only allows you to draw on unpainted areas, leaving the existing masks untouched. This mode is perfect for adding new segments without modifying or interfering with the current annotations, ensuring that previously annotated objects remain intact.
By choosing the appropriate mode, you can control how new annotations interact with existing masks.
Learn how to effectively use the Brush tool in a 5-minute tutorial. Get hands-on experience with the new interface and explore the advanced features in our labeling toolbox.
Follow these step-by-step instructions to effectively use the Brush tool for image segmentation.
You can create a new class directly from the Annotation Toolbox. To do this:
Click the Brush Icon in the toolbar of the labeling interface.
Or select an existing object class or add a new class by clicking Add new class definition.
In the modal window, enter the class name, choose the Mask or Any shape, and configure additional settings (e.g., color, hotkeys).
Click the Create
button to add the new class to the definitions list.
Select the newly created class and segment the object with the mask in the image or video.
Customize the brush size using the slider in the settings tab or by pressing the hotkeys [
to decrease and ]
to increase the brush size.
Move the cursor to the area you want to segment. Click and drag to draw the outline of the object or region you want to annotate.
Continue drawing until you have covered the desired area. You can adjust the brush size dynamically during this process to achieve more accurate segmentation.
To remove unwanted parts of the mask, hold down the SHIFT
key and draw over the area to erase. You can also use the Eraser Tool or switch to the Pen Tool for finer edits.
Use bucket fill for gaps
Click the Bucket Fill Tool to quickly fill any gaps or holes in the segmentation with a single click. This will save time by automatically filling in areas that are not fully covered. The selected object is highlighted with a grid of dots.
Split the mask
Use the Polygon Split Tool to divide the current mask into two separate objects. Start drawing around the desired area and close the contour by clicking at the starting point. The selected area will be separated as a new object in the objects list.
Segmenting object presented by separate parts
Draw the first segment of the object by clicking and dragging over the area you want to annotate. Move to the next area that is also part of the same object or class, and draw another segment using the Brush Tool. Continue this process for all the separate parts that belong to the same object. All the segments will automatically be grouped into a single object mask. When you have finished annotating all parts, press the SPACE
key to finalize the annotation and create a new object.
Use the Object Color Randomizer to instantly change the color of any object with a single click, as often as you like. This is particularly useful if you have many objects of the same class, or if they are close together, so you can easily differentiate between masks.
Discover all the advanced features and unique applications of the Brush Tool in our comprehensive blog post.
Control the Brush tool more efficiently with HOTKEYS
.
Brush Tool | 8 |
---|---|
Draw pixel mask | |
Erase | Hold Shift |
Decrease brush size | [ |
Increase brush size | ] |
Finish & start new | Space |
Use Polygon Split (to cut mask into two figures) and Bucket Fill (to fill holes) in the tool subpanel |
---|
Scene Navigation |
---|
Zoom with |
+ Draw
Finish area using SPACE
or the first point.