Get Math Help

GET TUTORING NEAR ME!

By submitting the following form, you agree to Club Z!'s Terms of Use and Privacy Policy

    Connected Component

    Usage

    MorphologicalComponents[image] gives an array in which each pixel of image is replaced by an integer index representing the connected foreground image component in which the pixel lies.
MorphologicalComponents[image, t] treats values above t as foreground.
MorphologicalComponents[video, ...] computes connected components in frames of video.

    Basic example

    Find the connected components in a binary image:
In[1]:=MorphologicalComponents[]// Colorize
Out[1]=

    Options

    CornerNeighbors | Method | Padding

    Relationships with other entities

    MorphologicalPerimeter | ComponentMeasurements | SelectComponents | WatershedComponents | ClusteringComponents | Colorize | HighlightImage | HighlightVideo | VideoObjectTracking

    Relationships with other entities

    History

    introduced in Version 7 (November 2008)
last modified in Version 14.2 (future)

    Find the right fit or it’s free.

    We guarantee you’ll find the right tutor, or we’ll cover the first hour of your lesson.