GlossaryImage segmentation
Image segmentation
Image segmentation is the computer vision task of labeling an image pixel by pixel, so each pixel is assigned to a class or to a specific object. Instead of a box around a part, it gives the part's exact outline.
How it works
There are three common forms. Semantic segmentation labels every pixel with a class, such as floor, wall or obstacle, without separating individual objects. Instance segmentation separates each object of a class, such as each connector on a board. Panoptic segmentation combines both.
Segmentation networks usually encode the image into features and decode them back to full resolution. A 2015 paper introduced an encoder and decoder with skip connections that preserve fine detail, which became a standard design for precise masks from modest training sets. A 2017 paper extended a detector with a mask branch, producing a box and a pixel mask for each object.
Promptable segmentation models generalize further. A 2023 model trained on over a billion masks segments objects from a point, a box or a rough prompt, including objects it was not trained on, which makes labeling and new tasks much faster.
Image segmentation vs object detection
Detection gives a box and a class for each object. Segmentation gives the exact pixels. A box around a tilted connector includes background. A mask follows its edges. Segmentation costs more to label and run, and it is the right choice when shape, area or exact boundaries matter.
Why it matters
Many decisions depend on exact shape. A robot grasping a part needs its outline, not a box. A drone landing needs the true edge of a clear area. In inspection, measuring the area of a solder void or the coverage of a fillet requires a pixel-level mask, and segmentation turns those images into numbers.
How to get it right
- Write labeling rules for edges, gaps and overlapping objects.
- Use promptable models to speed up labeling, then review the masks.
- Train on the deployed camera's resolution, since fine edges vanish when images are shrunk.
- Measure accuracy on object boundaries, not only on overall pixel counts.
- Check speed on the target hardware, since full-resolution masks are costly.
Image segmentation in robotics and drone hardware
Segmentation runs on mobile robots for drivable-area and obstacle maps, and on drones for landing zones and crop or infrastructure surveys. In electronics inspection, segmenting X-ray images measures void area under thermal pads, and segmenting optical images measures fillets. Each case sets camera resolution and onboard compute needs.