Morphology (single input)

../../../../_images/image_filtering.svg

Some of the docstrings for this module have been extracted from the scikit-image library and are covered by their respective licenses.

class node_morphology2.MorphologySingleInput[source]

Uses morphology based algorithms with a built-in structuring element

Algorithms:
  • convex hull, image

    Computes the convex hull of a binary image.

    The convex hull is the set of pixels included in the smallest convexpolygon that surround all white pixels in the input image.

  • convex hull, objects

    Computes the convex hull of each object in a binary image.

    The convex hull is the set of pixels included in the smallest convexpolygon that surround all white pixels in the input image.

    This function uses labeling to define unique objects, findsthe convex hull of each using convex_hull_image,

    and combines these regions with logical OR. Be aware the convexhulls of unconnected objects may overlap in the result

  • labeling

    Creates a unique integer label for each connected component in an integer valued or binary image.

    diagonal neighborhood:

    If true then also consider diagonals for connectivity

  • remove small holes

    Removes small holes from an integer or boolean image.

    diagonal neighborhood:

    If true then also consider diagonals for connectivity

    n:

    Maximum size in pixels of areas to remove (default 64)

  • remove small objects

    Removes connected components smaller than the given size.

    diagonal neighborhood:

    If true then also consider diagonals for connectivity

    n:

    Maximum size in pixels of areas to remove (default 64)

  • skeletonize

    Returns the skeleton of a binary image. Thinning is used to reduce each connected component in a binary image to a single-pixel wide skeleton.

Inputs:

source : image

source image to filter

Outputs:

result : image

result after filtering