Description

Mathematical Morphology operator exposed as IMcImage.Morpho.

Object Model


Remarks

When used as the McImage.Morpho property, this operator applies to its parent McImage, but a source McImage or McRegionAccess can be provided through an optional parameter (the destination is always the parent image). It can also be created independently using McEngine.CreateObject in which case the source image must be specified.

McMorpho.Shape and McMorpho.NumPasses properties are used as a default for most Morphology methods. McMorpho.Threshold is used by operators working on a binary image, and McMorpho.Kernel is used by operators accepting custom kernels. McMorpho.PrefloodLevel is used by the Watershed and Reduce operators.

Members

Methods
BranchEnd

Skeletonizes an image, then classifies the skeleton pixels according to their connectivity.

Close

Applies a morphological closing filter to an IMcImage (a dilation followed by an erosion of the same size).

Dilate

Applies a morphological dilation filter to an IMcImage.

DistanceMap

Returns a distance map of the image AOI.

Erode

Applies a morphological erosion filter to an IMcImage.

ExtractBackground

Extracts the background from an image.

Open

Applies a morphological opening filter to an IMcImage (an erosion followed by a dilation of the same size).

Reduce

Reduces objects in an image AOI to a small group of points.

Sculpt

Applies Gaussian filter to an image instance to blur details and reduce noise.

Thin

Applies a thinning filter to an image.

TopHat

Applies Gaussian filter to an image instance to blur details and reduce noise.

Watershed

Applies the watershed separation filter to an image AOI and returns an 8-bit separation mask.

Well

Applies Gaussian filter to an image instance to blur details and reduce noise.


Properties
KernelRead-write property

Read-write property giving access to the default Morphology kernel.

NumPassesRead-write property

Property used to set or get the default number of passes for Erode, Dilate, Open, Close and Thin.

PrefloodLevelRead-write property

Determines the preflood level for the Watershed and Reduce operators.

ShapeRead-write property

Property used to set or get the default Structuring Element for Erode, Dilate, Open and Close.

ThresholdRead-write property

Property used to set ot get the threshold level for methods that work on binary images.