Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

converting black and white to false color map

 

Hi Slovintern,

 

Expanding on Bruce's posting, you can easily determine which grayscale values map to the selected palette colors using the IMAQ ColorValueToInteger function.

 

Build a color table using IMAQ ColorValueToInteger, and each unique index to the color table array will yield the corresponding U32 RGB value. (In other words, use the grayscale intensity to index the correspoding color in the table.)

 

-- Dave 

0 Kudos
Message 11 of 11
(1,188 Views)