M 036 / 18302 Masks & Controlalgorithm output

GrabCut Mask

Grabcut Mask. segmentation, masks & control

Typeface · Archivo

Real-world algorithm demonstration, applied to a NASA portrait.
Real-world algorithm demonstration, applied to a NASA portrait.Image: NASA / Eileen Collins · scikit-image (public domain)View source ↗

Prompt

Apply GrabCut Mask as a foreground-separation preview, retaining the main subject's natural colors and texture while covering the background with a translucent dark overlay. Show a mostly hard selection boundary with slightly coarse treatment around hair, fine gaps, and ambiguous edges. Keep the original subject and composition.

Identify

A striking figure is roughly separated from the rest.

Principle

Color models and a graph cut1 optimize foreground/background masks.

Try it out

Improve the initial box2.

Classification

Calculated image processing result.

Further examples · 7 images

Careto
02 CaretoA complex subject is isolated from a background using a binary mask. The mask follows high-contrast edges, which is the primary goal of Graph Cut based segmentation like GrabCut.Rosino Tuvalkin (talk · contribs) · CC BY-SA 2.0 · Wikimedia Commons
GrabCut Mask, applied to “Wooden bench swing and wicker hammocks on a bamboo footbridge in paddy fields a ”
03 GrabCut Mask, applied to “Wooden bench swing and wicker hammocks on a bamboo footbridge in paddy fields a ”A bamboo bridge and hammocks are isolated within a yellow mask boundary. A green rectangle defines the initial search area, and the background outside the mask is desaturated.Basile Morin (photo); processed for the Atlas · CC BY-SA 4.0 · Wikimedia Commons
GrabCut Mask, applied to “Umbrellas at Caudan Waterfront Mall”
04 GrabCut Mask, applied to “Umbrellas at Caudan Waterfront Mall”A cluster of colorful umbrellas is separated from the street scene below. The yellow outline follows the umbrella shapes, showing how the algorithm distinguishes color models to refine the mask.Martin Falbisoner (photo); processed for the Atlas · CC BY-SA 4.0 · Wikimedia Commons
GrabCut Mask, applied to “Rutherford Hill Wine Cave-1369”
05 GrabCut Mask, applied to “Rutherford Hill Wine Cave-1369”A stack of wine barrels is isolated from a dark background. The algorithm has traced the complex edges of the barrels and wooden racks within the green bounding box.Frank Schulenburg (photo); processed for the Atlas · CC BY-SA 4.0 · Wikimedia Commons
GrabCut Mask, applied to “Shoe trees”
06 GrabCut Mask, applied to “Shoe trees”A small group of light-colored shoe lasts is extracted from a dark grid. The jagged yellow border demonstrates the graph-cut optimization separating similar foreground and background shapes.Wilfredor (photo); processed for the Atlas · CC0 · Wikimedia Commons
GrabCut Mask, applied to “Zernez, Unterengadin, Graubünden. 20-09-2023. (actm.) 71”
07 GrabCut Mask, applied to “Zernez, Unterengadin, Graubünden. 20-09-2023. (actm.) 71”A green wooden building is isolated from a forest background. The yellow mask follows the roofline and walls, while the green box indicates the user's initial input area.Agnes Monkelbaan (photo); processed for the Atlas · CC BY-SA 4.0 · Wikimedia Commons