Description

An operator used to convert images into regions, lines, points or a bit mask based on pixel intensity values.

Object Model


Remarks

This operator is exposed as McRegions.Threshold, McLines.Threshold, McPoints.Threshold and McBitMask.Threshold. It can also be created independently using McEngine.CreateOperator, but it must have an McFeatures object or an McBitMask object as an ancestor.

When this operator is attached to an McFeatures instance (an McRegions, McLines or McPoints) or an McBitMask instance, the Execute method will set the parent McFeatures based on the ancestor image's intensity values. It is also possible to designate the image to get the intensity information from (vSourceImg parameter as an McImage, a name, or an index in the image collection). For McFeatures ancestors, the method used to convert the forground bits into features is controlled by the ancestor McFeatures.SetFromMaskMethod property.

Members

Methods
Execute

Performs the thresholding operation to set the foreground region features in the parent McRegions object.

FindIntensityRange

Sets the IntensityRange property for a specified phase.


Properties
AutoFindPhaseRead-write property

Specifies the intensity range “phase” to automatically find to set the IntensityRange property.

ChangeCountRead-only property

A count of changes to McThreshold properties and dependencies

ChannelMaskRead-write property

A bitmask allowing only a subset of all channels to be used for the thresholding during the Execute operation.

HistogramRead-only property

An McHistogram operator used by the the Threshold operator to perform automatic thresholding.

IntensityRangeRead-write property

Property reflecting and setting the current intensity limits that will be used for thresholding.

InterpretationRead-write property

An optional pixel interpretation cast to be applied before thresholding.

SmoothingRead-write property

Sets and reflects the degree of smoothing that is applied to the thresholded region boundaries.