DeviationWeight Property

NI Vision for Visual Basic

DeviationWeight Property

Syntax

CWIMAQLocalThresholdOptions.DeviationWeight

Data Type

Double

Purpose

Specifies the weight applied to the variance calculation.

Remarks

Valid k constants range from 0 to 1. Settings this value to 0 will increase the performance of the method because the method will not calculate the variance for any of the pixels. This value is used only if CWIMAQLocalThresholdOptions.Method is set to cwimaqLocalThresholdMethodNiblack. The default is 0.2.