10-01-2010 03:16 PM
I have 16 bit images of a diffration pattern and I want to convert them to a false color image like 'Matlab Color Map' so I can make a false color avi. Does anyone have a quickey routine written for that? Does this already exist somewhere in Imaq and I missed it?
10-04-2010 06:01 AM
Hi,
Have you tried using the "Color Palette" input of the "IMAQ Windraw.vi" (external display palette) ?
Or with the "Palette=>User Palette" property of the "Vision Image Display" control ?
If your image has 10-bit bitdepth, passI's an array of RGB values with 1024 entries.
It's been a long time i haven't used this feature, so i am not sure it will work with 16-bit image, but give it a try.
Best Regards.
JC Benoit
Vision Engineer
Alliance Vision
10-04-2010 07:58 AM
I'll look at windraw, but the obhject us to save the image as a false color map similar to the matlab function. Simply displaying it with the display palette is not enough.
10-04-2010 08:23 AM
OK, it appears this might work, sort of. The color map 'rainbow' is acceptpable but I don't really like the color scheme. I would prefer the color map as follows;
1) No light would be black,
2) little bit of light transitions to red
3) At the top end, getting hot would be blue,
5) The max intensity would be white.
10-04-2010 09:13 AM
You should also be able to specify a custom palette, simply input your custom array of RGB clusters to "IMAQ Windraw.vi".
You can also input a custom color map to the "IMAQ Write File.vi", if you need to record the images to the hard disk.
Best Regards.
JC Benoit
Vision Engineer
Alliance Vision
10-04-2010 09:17 AM
Actually I take it back. It doesnt seem to work at all. I need to be able to save the false color image. False color images are invaluable in scientific image processing.
10-04-2010 10:24 AM
It sounds like the "gradient" palette might work for you. I think it goes black -> red -> blue -> white (with a few colors in between).
I would use the color palette as a lookup table to convert your grayscale image to a color one. I am sure there is a way to do it, but I haven't ever tried.
Bruce
10-05-2010 10:12 AM
I solved it. Pretty easy actually.
10-05-2010 10:35 AM
Looks like it works, but it is a bit complicated. I was thinking something a little simpler, like this:
This just converts the palette to color lookup tables and uses the color lookup vi to convert the image.
Bruce
07-24-2013 01:19 AM
Hello,
I need to use this for a black and white luninacne graph. is there a way to display a scale as well to show which colour means how much,