LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

custom color palettes

I have an IMAQ/LabVIEW image analysis application that utilizes a half-dozen color palettes. I want to create my own palettes. Is there any way to do this?
 
Paul
7.1
PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 1 of 2
(4,400 Views)
I'm not clear on exactly what you are looking for, but the attached example demonstrates how to create a custom color palette for the WindDraw window. A custom color palette is composed of an array of clusters containing 256 elements for each of the three color planes. A specific color is the result of applying a value between 0 and 255 for each of the three color planes (red, green, and blue). If the three planes have identical values, a gray level is obtained (0 specifies black and 255 specifies white). This output array connects directly to the input Color Palette of IMAQ WindDraw. Use this example when you do not want the color palette to be one of the predefined palettes (Gray, Binary, Gradient, Rainbow, Temperature) available through IMAQ GetPalette. The Color Palette only applies to 8 bit images, otherwise it will be ignored. This example requires IMAQ Vision.
 
If this example isn't relevant to what you are trying to do, please explain what you are looking for in more detail.
 
Kind Regards,
E. Sulzer
Applications Engineer
National Instruments
Message 2 of 2
(4,381 Views)