Morphology Operators

This page describes the interfaces for the basic morphology operators that you can use to build your own pipeline. To easily visualize the effect of different operators, the "blobs" image is used to build the cover image.

using TestImages, ImageBase
restrict(testimage("blobs"))
🚧 work in progress

This page contains only a subset of exported functions. The missing ones will be added in the future. You might need to check the heavy reference page to find out what you need. Contributions are welcome!

Operators

list-card-cover-image

The extreme_filter function is the core operation in ImageMorphology. Many other morphological operations such as dilate and erode are direct usages of it. The cover image shows a pixel jitter using random select function.

list-card-cover-image

The dilation operator dilate is essentially a max filter. This is a basic term in mathematical morphology – many operations are built on top of dilate and the erode operator.

list-card-cover-image

The dilation operator erode is essentially a min filter. This is a basic term in mathematical morphology – many operations are built on top of erode and the dilate operator.

list-card-cover-image

opening operator is defined as dilate(erode(img)). Intuitively, opening operation fills the white holes in the image.

list-card-cover-image

closing operator is defined as dilate(erode(img)). Intuitively, closing operation fills the black holes in the image.

list-card-cover-image

The (white) tophat operator is defined as img - opening(img). Intuitively, this filter can be used to extract small white elements and details from an image.

list-card-cover-image

The (black) tophat operator, also known as bottom hat, is defined as closing(img) - img. Intuitively, this filter can be used to extract small black elements and details from an image.