Morphological Image Operations

../../../../_images/image_morphology.svg

Performs one of a selection of morphological or rank operations on a target image (top) that uses a given structuring element (bottom). Other morphological operations can be found under the “filter” node

Algorithms:

  • autolevel

    Stretches the local histogram defined by structuring element to cover the full range

    p0:

    Defines the lower percentile (0..1) included in histogram

    p1:

    Defines the upper percentile (0..1) included in histogram

  • binary, closing

    Perform morphological closing on image. Target and structuring element must be binary

    The morphological closing on an image is defined as a dilation followed by an erosion.

    Closing can remove small dark spots and connect small bright cracks.

  • binary, dilation

    Perform morphological dilation on image. Target and structuring element must be binary

    Morphological dilation sets a pixel at (i,j) to the maximum over all pixels in the neighborhood defined by

    the structuring element centered at (i,j). Dilation enlarges bright regions and shrinks dark regions.

  • binary, erosion

    Perform morphological erosion on image. Target and structuring element must be binary

    Morphological erosion sets a pixel at (i,j) to the minimum over all pixels in the neighborhood centered at (i,j). Erosion shrinks bright regions and enlarges dark regions.

  • binary, opening

    Perform morphological opening on image. Target and structuring element must be binary

    The morphological opening on an image is defined as a erosion followed by a dilation.Opening can remove small white spots and connect small dark cracks.

  • grey, closing

    Perform greyscale morphological closing on image.

    The morphological closing on an image is defined as a dilation followed by an erosion.

    Closing can remove small dark spots and connect small bright cracks.

  • grey, dilation

    Return greyscale morphological dilation of an image.

    Morphological dilation sets a pixel at (i,j) to the maximum over all pixels in the neighborhood defined by

    the structuring element centered at (i,j). Dilation enlarges bright regions and shrinks dark regions.

  • grey, erosion

    Return greyscale morphological erosion of an image.

    Morphological erosion sets a pixel at (i,j) to the minimum over all pixels in the neighborhood centered at (i,j). Erosion shrinks bright regions and enlarges dark regions.

  • grey, opening

    Perform greyscale morphological opening on image.

    The morphological opening on an image is defined as a erosion followed by a dilation.Opening can remove small white spots and connect small dark cracks.

  • median

    Return the median of the neighborhood defined by sweeping the structuring element over the image.

    When used on non-integer datatypes they are first cast into uint8

    This operation functions as a filter suitable to removing salt and pepper noise

  • tophat, black

    Return morphological black-tophat of image.

    The black top hat of an image is defined as its morphological closing minus the original image.

    This operation returns the dark spots of the image that are smaller than the structuring element.

    Note that dark spots in the original image are bright spots after the black top hat.

  • tophat, white

    Return morphological white-tophat of image.

    The white top hat of an image is defined as the image minus its morphological opening.

    This operation returns the white spots of the image that are smaller than the structuring element.

Input ports:

target : image

Target image

structuring_element : image

Structuring element
Output ports:

output : image

Resulting image
Configuration:
Algorithm (algorithm)
(no description)
p0 (p0)
(no description)
p1 (p1)
(no description)

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

class node_morphology.ImageMorphology[source]