This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

ImageForestingComponents

ImageForestingComponents[image]
finds a segmentation of image, returning an integer matrix in which positive integers label different components.
ImageForestingComponents
tries to find a segmentation into components that include pixels indicated by marker.
ImageForestingComponents
finds components that are connected at a pixel scale given by r.
  • In ImageForestingComponents, marker can be given either as an image, a graphics object, or a list of points in the standard image coordinate system, where x runs from 0 to image width and y runs from 0 to image height, and position corresponds to the bottom-left corner of the image.
  • Nonzero elements of marker are treated as weighted seeds for the segmentation.
  • ImageForestingComponents generates a segmentation where pixels in each component are connected within the radius r. The default radius setting is 2.
Segment a color image:
Find a binary segmentation by specifying two seed points:
Use a rectangular neighborhood to segment lines of a text:
Segment a color image:
In[1]:=
Click for copyable input
Out[1]=
 
Find a binary segmentation by specifying two seed points:
In[1]:=
Click for copyable input
Out[1]=
 
Use a rectangular neighborhood to segment lines of a text:
In[1]:=
Click for copyable input
Out[1]=
Segment an image using a set of seeds:
Segment different words in a group of text:
New in 8