Click or drag to resize

IMcExtendedFocusVarianceThreshold Property

Defines the threshold for extracting in-focus pixels.

Namespace:  MediaCy.IQL.Align
Assembly:  MediaCy.IQL.Align (in MediaCy.IQL.Align.dll) Version: 10.0.6912.0
Syntax
VB
Property VarianceThreshold As Double
	Get
	Set

Property Value

Type: Double
Remarks
The parameter is used only when FocusType is set to mceftLocalContrast. The pixels (after edge filter) above the threshold are considered in-focus pixels. The pixels with intensities below the threshold are considered out of focus pixels. If for a given pixel position none of the frames contain edge intensities above the threshold, the height of the pixel (in 3D) is assigned to the frame with closest in-focus pixel.
Examples
VB
'set higher threshold as for noisy image
ThisApplication.ActiveImage.ExtendedFocus.VarianceThreshold = 80
ThisApplication.ActiveImage.ExtendedFocus.CreateBestFocusImage
See Also