LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to draw an ROI on an image and have the color to be transparent?

Hello,

I am using an ROI contour on a displayed image of my program and i want to programmatically change the color of it to transparrent.

I am using the property node and i bundle in the red green and blue values, however it does not accept the colorbox to change it to transparrent.

Do you know if there is any way to do this?

The result should be to draw an ROI and just have it invisible.

 

Thanks,

Christos

 

0 Kudos
Message 1 of 4
(3,253 Views)

Christos,

LabVIEW supports transparency in two ways.  Either you can use the Set Mask VI to select a specific color to be transparent in the image, or you can use the alpha bit.  Here is a KnowledgeBase article that talks about transparency in LabVIEW and has an example VI to set transparency using the second method. 

I hope this helps.

-Christina

0 Kudos
Message 2 of 4
(3,233 Views)

Hello Christina, thanks for your response.

These methods are known to me, however, when you create a Display and then a property node for the ROI contour color, the input of it takes only 8bit RGB color. I couldn't find any node that takes the alpha, or the transparent value.

Let me know if you have a more specific solution in mind to solve this problem.

Currently i believe that the Labview code for the ROI contour is insufficient.

 

Thank you,

 

Christos

 

0 Kudos
Message 3 of 4
(3,224 Views)
I agree with Christos.  In addition to his issue, the user also does not have access to references to each contour (which would be nice) and the continuing bug where the ID of each contour is always External when read from the ROI property.  It sets properly, but doesn't read properly.
Randall Pursley
0 Kudos
Message 4 of 4
(3,215 Views)