IMAQ WindDisplayMapping VI
Owning Palette: External DisplayInstalled With: NI Vision Development ModuleSets/gets the pixel mapping policy for displaying 16-bit images with an unspecified bit depth. Because 16-bit grayscale images cannot be displayed with their full resolution on 32-bit color displays using common video adapters limited to 8-bit resolution/per pixel/color, 16-bit images need to be mapped to the 8-bit range (0 to 255).
Window Number (0...15) specifies the image window to configure. The window is identified by a number from 0 to 15. The default value is 0. Specify a value of 15 to configure the video out port on a LabVIEW Real-Time system. |
|||||||||||||||||||
Conversion Policy (Full Dynamic) is the display conversion to use if Get/Set Status? is set to TRUE.
|
|||||||||||||||||||
error in (no error) describes the error status before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
|||||||||||||||||||
Get/Set Status? (Set) specifies whether to retrieve (Get) or modify (Set) the conversion policy for displaying a 16-bit image in an image window The default value is TRUE (Set). |
|||||||||||||||||||
Conversion Policy out returns the current display conversion policy for the Window Number specified.
|
|||||||||||||||||||
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|
Details
IMAQ WindDisplayMapping enables the mapping technique used when displaying a 16-bit grayscale image. According to the Conversion Method selected, the image full dynamic is mapped to 8 bits (Full Dynamic), a given number of right shift is applied to the 16-bit pixels (Downshift), the range corresponding to the center 90% of the cumulative histogram is mapped to 8-bits (90% Dynamic). The default mapping technique is the Full Dynamic, where 16-bit images are displayed by scaling the data to 8 bits, calculated as a function of the dynamic range from the image source. The minimum value (min) and the maximum value (max) are calculated automatically. Then the following formula is applied to each pixel:
Display(x, y) = (Src(x, y) - min) × 255/(max - min)