Get Math Help

GET TUTORING NEAR ME!

(800) 434-2582

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

    Home / Get Math Help

    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)

    Back to List | POWERED BY THE WOLFRAM LANGUAGE