Method Property

NI Vision for Visual Basic

Method Property

Syntax

CWIMAQLocalThresholdOptions.Method

Data Type

CWIMAQLocalThresholdMethods

You can use the following constants with this data type:

  • cwimaqLocalThresholdMethodBackgroundCorrection—The method performs background correction first to eliminate non-uniform lighting effects, then performs thresholding using the Otsu thresholding algorithm.
  • cwimaqLocalThresholdMethodNiblack—The method computes thresholds for each pixel based on its local statistics using the Niblack local thresholding algorithm.

Purpose

Specifies the local thresholding method.

Remarks

The default is cwimaqLocalThresholdMethodNiblack.