Click or drag to resize

McThresholdToolAutoThreshold Method

Calculates Auto Threshold on the active image and sets it to the tool.

Namespace:  MediaCy.Addins.ThresholdTool
Assembly:  MediaCy.Addins.ThresholdTool (in MediaCy.Addins.ThresholdTool.dll) Version: 3.1.0.0
Syntax
VB
Public Sub AutoThreshold ( 
	image As McImage,
	Optional bBrightElseDark As Boolean = true,
	Optional bSetToDialog As Boolean = false
)

Parameters

image
Type: MediaCy.IQL.EngineMcImage
bBrightElseDark (Optional)
Type: SystemBoolean
bSetToDialog (Optional)
Type: SystemBoolean
Remarks
The threshold is calculated only if ThresholdType is set to mcttWhiteObjects or mcttDarkObjects
Examples
VB
ThresholdTool.ThresholdType = mcttDarkObjects
ThresholdTool.AutoThreshold
Debug.Print "Auto threshold = " + ThresholdTool.ThresholdEnd
See Also