Skip to content

Image Segmentation

Image Segmentation

cornea covers 2D image segmentation using several different approaches: color-based thresholding, region growing, intensity thresholding, superpixel grouping, graph-cut optimization, and deep learning models. Pick the group that matches the kind of separation you need.

Color Segmentation

Color segmentation isolates regions by thresholding pixel values in a specific color space (RGB, HSV, LAB, or YCrCb). It's fast and needs no training, and works best when the target has a distinct, consistent color under reasonably controlled lighting.

Region Segmentation

Region-based methods grow or crop out a region from a seed point or a fixed area, rather than relying on a single pixel property. Use these to separate touching objects (watershed), pull a contiguous blob from a seed pixel (flood fill), or restrict processing to a known area of interest (focus region).

Threshold Segmentation

Threshold segmentation binarizes an image into foreground/background based on pixel intensity or edge strength. Some methods pick the threshold automatically (Otsu, Yen, adaptive/local), others use a fixed value or the Laplacian of the image to catch edges - simple, deterministic, and easy to reason about.

Superpixel Segmentation

Superpixel methods over-segment an image into small, visually uniform regions before any higher-level decision is made. Use these as a preprocessing step to reduce an image to a manageable set of coherent regions rather than raw pixels.

Superpixel Filtering

Once you have a set of segments (from superpixels or another method), these skills filter that set down to the ones you actually want - by area, by average color, or by overlap with a binary mask. Use them to clean up noisy or over-segmented results.

Graph-Based Segmentation

Graph-based segmentation treats the image as a graph and finds an optimal cut between foreground and background. GrabCut handles softer, more irregular boundaries than simple thresholding, at the cost of a bit more computation.

Deep Learning Segmentation

Deep learning segmentation uses trained neural networks for high-accuracy, general-purpose results without hand-tuning thresholds or seed points. BiRefNet extracts a clean foreground mask from a single image, while SAM (Segment Anything) can segment arbitrary objects from a point or box prompt.

Free Tier
Every new account starts on a free tier with credits to call the SDK — no billing details required.
Create API key →

Where to Go Next?

Ready to go deeper? Browse the Telekinesis Skill Examples repository for a runnable example covering every Skill.

Skill Examples

One runnable example per Skill, across vision, 3D, hardware, and robotics.

Explore →

Explore the Docs

Support