CellFilterMode Property

NI Vision for Visual Basic

CellFilterMode Property

Syntax

CWIMAQQRCodeReport.CellFilterMode

Data Type

CWIMAQQRCellFilterModes

You can use the following constants with this data type:

  • cwimaqQRCellFilterModeAll—The method tries each filter mode, starting with cwimaqQRCellFilterModeAverage and ending with cwimaqQRCellFilterModeVeryLowAverage, stopping once a filter mode decodes correctly.
  • cwimaqQRCellFilterModeAutoDetect—The method will try all filter modes and uses the one that decodes the QR code within the fewest iterations and utilizing the least amount of error correction.
  • cwimaqQRCellFilterModeAverage—The method sets the pixel value for the cell to the average of the sampled pixels.
  • cwimaqQRCellFilterModeCentralAverage—The method sets the pixel value for the cell to the average of the pixels in the center of the cell sample.
  • cwimaqQRCellFilterModeHighAverage—The method sets the pixel value for the cell to the average value of the half of the sampled pixels with the highest pixel values.
  • cwimaqQRCellFilterModeLowAverage—The method sets the pixel value for the cell to the average value of the half of the sampled pixels with the lowest pixel values.
  • cwimaqQRCellFilterModeMedian—The method sets the pixel value for the cell to the median of the sampled pixels.
  • cwimaqQRCellFilterModeVeryHighAverage—The method sets the pixel value for the cell to the average value of the ninth of the sampled pixels with the highest pixel values.
  • cwimaqQRCellFilterModeVeryLowAverage—The method sets the pixel value for the cell to the average value of the ninth of the sampled pixels with the lowest pixel values.

Purpose

Specifies the cell filter mode the method used to locate the QR code.

Remarks

If CellFilterMode is set to cwimaqQRCellFilterModeAutoDetect in the QRSearchOptions input parameter, this property indicates the recommended cell filter mode for this image.