Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Undocumented changes to IMAQ GetPalette

There appears to be an undocumented change to IMAQ GetPalette in Vision 2015 with the addition of a "Bit Depth" control.  This accepts values between 8 and 16, and returns an array of size 2^(bit depth).  Associated with this is that the Image Display control now has several 16-bit palettes available in its popup menu.

GetPalette.png

It's not clear what advantages this brings, as 16-bit images are mapped to 8-bit when displaying.  It also doesn't appear that the 16-bit palettes are used elsewhere in Vision, for example when writing image files.

 

Does anyone know anything more about this change?  Not that anything is lost, but I'm not quite sure what has been gained!

0 Kudos
Message 1 of 2
(3,621 Views)

Hi Greg!

 

Thank you for making us aware of that issue.  That input should be documented, but from what I can tell, it does not appear properly in the help documentation.  From looking at that input, it appears the default value of the "Bit Depth" is set to 8, and the terminal has a U32 data type.  More documentation on the changes to VDM 2015 can be found here:

 

NI Vision Development Module 2015 Readme

http://download.ni.com/support/softlib//vision/Vision%20Development%20Module/2015/readme.html

 

Thanks!

 

Tucker
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(3,597 Views)