DataMatrixCellFilterMode

NI Vision for LabWindows/CVI Function

DataMatrixCellFilterMode

Specifies the mode the function uses to determine the pixel value for each cell.

Elements

Name

Value

Description

IMAQ_AUTO_DETECT_CELL_FILTER_MODE -2 The function will try all filter modes and uses the one that decodes the Data Matrix barcode within the fewest iterations and utilizing the least amount of error correction.
IMAQ_AVERAGE_FILTER 0 The function sets the pixel value for the cell to the average of the sampled pixels.
IMAQ_MEDIAN_FILTER 1 The function sets the pixel value for the cell to the median of the sampled pixels.
IMAQ_CENTRAL_AVERAGE_FILTER 2 The function sets the pixel value for the cell to the average of the pixels in the center of the cell sample.
IMAQ_HIGH_AVERAGE_FILTER 3 The function sets the pixel value for the cell to the average value of the half of the sampled pixels with the highest pixel values.
IMAQ_LOW_AVERAGE_FILTER 4 The function sets the pixel value for the cell to the average value of the half of the sampled pixels with the lowest pixel values.
IMAQ_VERY_HIGH_AVERAGE_FILTER 5 The function sets the pixel value for the cell to the average value of the ninth of the sampled pixels with the highest pixel values.
IMAQ_VERY_LOW_AVERAGE_FILTER 6 The function sets the pixel value for the cell to the average value of the ninth of the sampled pixels with the lowest pixel values.
IMAQ_ALL_CELL_FILTERS 8 The function tries each filter mode, starting with IMAQ_AVERAGE_FILTER and ending with IMAQ_VERY_LOW_AVERAGE_FILTER, stopping once a filter mode decodes correctly.
IMAQ_DATA_MATRIX_CELL_FILTER_MODE_SIZE_GUARD 0xFFFFFFFF Reserved