Image segmentation
Image segmentation divides an image into regions by giving every pixel a label, so a computer knows exactly which pixels belong to each object or surface rather than only what the image contains.
Image recognition says what is in a picture. Segmentation says exactly where, down to the pixel. There are three main kinds. Semantic segmentation labels each pixel by class, so every person in a crowd is coloured as person. Instance segmentation separates individual objects, so each person gets their own outline. Panoptic segmentation does both, labelling every pixel with a class and telling apart separate objects of the same class.
Classical methods relied on simple cues. Thresholding splits an image into light and dark regions, clustering methods such as k-means group pixels with similar colours, and the watershed method treats the image like a relief map of hills and valleys and floods it to find boundaries. These work on clean, simple images but struggle with cluttered real scenes.
Deep learning took over in the mid-2010s. In May 2015 Olaf Ronneberger, Philipp Fischer and Thomas Brox published U-Net, a network for biomedical images with a path that shrinks the image to capture context and a matching path that expands it again for precise outlines. Using heavy data augmentation, it trained from very few labelled images, segmented a 512 by 512 image in under a second on a GPU, and won the 2015 ISBI cell tracking challenge in two microscopy categories.
In April 2023 researchers released Segment Anything, a promptable model: click a point or draw a box, and it returns a mask for the object. It was trained on SA-1B, a dataset of more than 1 billion masks on 11 million images, and both the model and the data were released publicly. The authors reported that it often matched or beat earlier fully supervised systems on new kinds of images without retraining.
Segmentation does much of the practical work in vision systems. It measures tumours and tissue volumes in medical scans, maps roads, forests and crops in satellite images, and supplies the masks that photo tools use to cut out a subject or tell an inpainting model which area to replace.
Image segmentation is dividing an image into meaningful regions by assigning a label to every pixel. It tells a computer not just that a picture contains a car, but exactly which pixels make up the car. Semantic segmentation labels pixels by category, so all people share one label. Instance segmentation distinguishes separate objects, so each person gets a separate outline. Panoptic segmentation combines the two. Segment Anything is a promptable segmentation model released in April 2023 together with SA-1B, a dataset of over 1 billion masks on 11 million images. You give it a point or a box and it outlines the object, and it works on many kinds of images without extra training. U-Net is a neural network design published in 2015 for segmenting biomedical images. It compresses an image to capture context, then expands it to produce precise outlines, and it could be trained from very few labelled images by making heavy use of data augmentation.Common questions
What is image segmentation?
What is the difference between semantic and instance segmentation?
What is Segment Anything?
What is U-Net?
Search for "semantic segmentation", "U-Net", "Segment Anything" or "panoptic segmentation" to learn more. The original papers on arXiv describe each method and its measured results, and computer vision courses explain the basics. For medical uses, look for peer-reviewed clinical evaluations rather than benchmark scores alone.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.