MappingMethod

NI Vision for LabWindows/CVI Function

MappingMethod

Describes the method for converting 16-bit pixels (65,536 grayscale values) to 8-bit pixels (256 grayscale values).

Elements

Name

Value

Description

IMAQ_FULL_DYNAMIC 0 The function maps the full dynamic range of the 16-bit image to an 8-bit scale. It displays 16-bit images by scaling the data to 8 bits, calculated as a function of the dynamic range from the image source. The function calculates the minimum value (min) and the maximum value (max) automatically. Then the function applies the following formula to each pixel: Display(x, y) = (Src(x, y) - min) × 255/(max - min)
IMAQ_DOWNSHIFT 1 The function shifts the 16-bit image pixels to the right the number of times specified by the shiftCount element of the DisplayMapping structure.
IMAQ_RANGE 2 The function maps the pixel values in the range specified by the minimumValue and maximumValue elements of the DisplayMapping structure to an 8-bit scale.
IMAQ_90_PCT_DYNAMIC 3 The function maps the dynamic range containing the middle 90 percent of the cumulated histogram of the image to an 8-bit (256 grayscale values) scale.
IMAQ_PERCENT_RANGE 4 The function maps the pixel values in the relative percentage range (0 to 100) of the cumulated histogram specified by minimumValue and maximumValue to an 8-bit scale.
IMAQ_MAPPING_METHOD_SIZE_GUARD 0xFFFFFFFF Reserved