Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

change background color in IMAQ Image Display

I displayed a binary image using IMAQ Image Display on the front panel. The backgorund was red, and the non- background black.(not interested in the IMAQ white background, just my own image)

 

However, I would like to change both the background color, and non background color to my own taste. I tried to right click the front panel, and even tried using property node, but nothing is changing those colors.

 

 

0 Kudos
Message 1 of 2
(3,819 Views)

First, you have to set the palette to user defined. Right click on the image display control, and select palette>>User Defined (you can also do that programatically). Then, on the diagram, use the property node User Palette. The user palette is a lookup that you can use to specify the color with which you want to display each pixel value. Each element of the array is a cluster of RGB values that specify the color for the pixel whose value correspond to the index.

See attached VI for an example on how to set your own values for background and particles.

 

Hope this helps. Best regards,

 

-Christophe

0 Kudos
Message 2 of 2
(3,811 Views)