02-21-2013 04:23 PM
Hi,
I'm trying to plot an image using a 2D array of data points using IMAQ.
Creating a greyscale image is quite simple, but is it possible to display the image as a spectral colour image? i.e. red corresponds to higher values, blue to lower values, and green in between, with a colour scale visible.
All the colour functions for IMAQ seem to want an RGB input or some other encoding, but all I have is raw numerical data. Maybe I need to convert it somehow....
Thanks,
Steve
Solved! Go to Solution.
02-22-2013 12:37 PM
Hello Steve,
Thank you for posting on our forums. I believe this example may prove to be of some use for your application. If I am understanding you correctly, currently you raw numerical data in the form of a 2D array, and would like to convert this data into an image. The linked example demonstrates how to convert an array of pixel values to either a grayscale or color image.
Is this what you are looking for?
02-22-2013 12:37 PM
Right-click your image display indicator and select "Palette >> Rainbow". This does exactly what you are looking for.
If the result is not satistying, you can create a custom palette and tell the image display to use it by wiring your palette to the property node "User Palette". Further details can be taken from the Vision Concepts Manual. Details covering palettes (also the rainbow palette) are here.
02-22-2013 02:15 PM
This is exactly what I needed, thanks.
I knew there would be a simpleoption, but I was just missing it...