ImageSegmentationComponents
ImageSegmentationComponents [image]
performs a global segmentation of image and returns a label matrix of components.
ImageSegmentationComponents [image,spec]
segments an image into components based on the given spec.
ImageSegmentationComponents [video,…]
segments frames of video.
Details and Options
- ImageSegmentationComponents is a high-level image segmentation that can either segment the whole image or segment specified objects and components in an image.
- The following specifications spec can be given:
-
pos segments a component specified by an {x,y} coordinate{pos1,pos2,…} attempts to segment the image into components corresponding to every posi{{pos11,pos12,…},{pos21,…},…} specify each component with a list of positions
- When multiple positions or rectangles are provided, a segment is computed for every marker. If different markers generate significantly overlapping components, the less dominant segment will be suppressed.
- The following options can be given:
-
TargetDevice "CPU" the target device on which to perform training
- Possible settings for PerformanceGoal include:
-
Automatic automatic tradeoff between speed and quality"Balanced" medium quality for average speed"Quality" optimize for quality of final results"Speed" optimize for speed of getting results
Examples
open allclose allBasic Examples (1)
Segment an image:
Scope (3)
Segment an image and colorize the segments:
Highlight segments on the image:
Generate a mask for a segment indicated by a list of positions:
Highlight the specified target points as well as the segmentation on the image:
Generate a mask for a segment inside a bounding box:
Highlight the bounding box as well as the segmentation on the image:
Options (1)
PerformanceGoal (1)
By default, a medium-speed model with moderate quality is used:
Aim for speed, but this typically results in lower quality:
Aim for high quality, but this typically leads to slower results:
Applications (3)
Segment repeating components in an image:
Segment an x-ray or other image modalities:
Segment a region selected by points:
Text
Wolfram Research (2024), ImageSegmentationComponents, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageSegmentationComponents.html (updated 2025).
CMS
Wolfram Language. 2024. "ImageSegmentationComponents." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/ImageSegmentationComponents.html.
APA
Wolfram Language. (2024). ImageSegmentationComponents. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageSegmentationComponents.html
BibTeX
@misc{reference.wolfram_2025_imagesegmentationcomponents, author="Wolfram Research", title="{ImageSegmentationComponents}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/ImageSegmentationComponents.html}", note=[Accessed: 25-April-2025 ]}
BibLaTeX
@online{reference.wolfram_2025_imagesegmentationcomponents, organization={Wolfram Research}, title={ImageSegmentationComponents}, year={2025}, url={https://reference.wolfram.com/language/ref/ImageSegmentationComponents.html}, note=[Accessed: 25-April-2025 ]}