Click or drag to resize

ThresholdOperatorsHistogram Method

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

Namespace:  MediaCy.IQL.Operators
Assembly:  MediaCy.IQL.Operators (in MediaCy.IQL.Operators.dll) Version: 3.1.0.0
Syntax
VB
<ExtensionAttribute>
Public Shared Function Histogram ( 
	thres As McThreshold
) As McHistogram

Parameters

thres
Type: MediaCy.IQL.FeaturesMcThreshold

Return Value

Type: McHistogram

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type McThreshold. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
This McHistogram instance is mostly used as a tool by the internals of the McThreshold methods that automatically detect thresholds based on the image histogram. But you can set a few of the IMcHistogram properties directly to modify the particular algorithm used for threshold detection; see the McThreshold.FindIntensityRange method for more discussion.
Examples
VB
'Detect bright regions using the maximum intensity resolution
With ThisApplication.ActiveImage.RegionFeatures.Threshold
.Monochrome = True 'do an intensity threshold, not a color one
.AutoFindPhase = mcfpBrightest 'will find brightest regions
.Histogram.BinCount = .Histogram.MaxBinCount 'set to max bin count
.Execute 'find thresholds and set the region features
End With
See Also

Reference

McThreshold
Histogram
Threshold