LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Progamatically changing ROI colors

I am programmically building multiple image ROI's and then grouping them to display on the image.  The ROI Descriptor does not allow specification of the the indiviudal color of the ROI.  I can create a "color" property node for each individual descritpor and then define a color for each off the node.  However,  this is not working.  I can not change the color of the group of ROI's let alone each independantly (my goal).  I assume that I am not applying the Property Node correctly or in the proper location. 

 

Any advise?

 

 

0 Kudos
Message 1 of 3
(3,170 Views)
This is not possible.  When you group ROIs, they become a single ROI with multiple Contours.  They will all be the same color defined by the property node of the image control.  The only way I can see to do what you want is to use one of the Overlay functions (IMAQ Overlay ROI).  This function allows you to input an array of colors along with the Grouped ROI that will assign each color in the array to each contour that makes up the ROI.
Randall Pursley
0 Kudos
Message 2 of 3
(3,155 Views)

Take a look at the attached.  Once a picture loads, add some ROIs to it and then leave the picture.  The ROIs themselves are all the same color, but this vi uses an overlay to represent the ROIs when the mouse is not in the image.

 

 

Randall Pursley
0 Kudos
Message 3 of 3
(3,141 Views)