LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

color table generator

Hye everybody

I want to allow the user of my LabView program to be able to set the colour scale of a picture using a colour palette control also on the front panel. Is this possible ?
I use a color table generator but i dont know how to set the color scale of my picture.
thk
0 Kudos
Message 1 of 3
(3,909 Views)
Here is an example vi that shows at least one way for a user to change color tables.

http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=C82CF170AD371651E034080020E74861&p_...

You can change the colors in an intensity graph by using either the "color table" or the "Z Scale > Marker Values[]" property (don't use both). If you need to change the color table of an IMAQ picture, use the "IMAQ Interger ToColorValue" vi to convert a regular color table array to an IMAQ color array.
Message 2 of 3
(3,882 Views)
I would also suggest checking out the various shipping LabVIEW examples that demonstrate using multiple color tables with intensity plots.

In Example Finder (Help >> Find Examples), look under Analyzing and Processing Signals >> Mathematics >> Common Intensity Maps.vi. It shows how to wire them, and it's also a good source of some common prebuilt color tables.

--John
Message 3 of 3
(3,875 Views)