Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert 8-bit image to color image by assigning a color palette.

This is probably a really simple problem, but, how do I convert an 8-bit image to a color image if I have a color palette I want to apply to it. I can save it to an image file, applying the color palette to it, and then load up that file as an RGB image, but that is inconvenient. I just want to convert it without saving it. Something like using IMAQ Cast Image to convert it from 8-bit to RGB that will also apply my color palette to it.
Can someone please let me know how to do this?
Thank you
0 Kudos
Message 1 of 3
(3,380 Views)
I found a way to make it work. I've attached what I did. If someone has an easier way, please let me know.
Thanks.
0 Kudos
Message 2 of 3
(3,380 Views)
ftp://ftp.ni.com/contrib/epd/B45EACE3ECBC56A4E034080020E74861/Draw%20Color%20Objects%20With%20IMAQ%20Draw.zip

ftp://ftp.ni.com/contrib/epd/B45EACE3EEF056A4E034080020E74861/Creating%20Custom%20Color%20Palettes%20for%20IMAQ%20Vision%20WindDraw%20Display.zip

Hope this helps.
0 Kudos
Message 3 of 3
(3,380 Views)