Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

changing color of overlay

In My application one Image Display Control will show the image captured form Camera. Image will also show  various Overlays (Not ROIs) on it.
once they are drawn i would like to change the colors of few shapes in overlays.
 
Basically application will contain a list box and each entry in a list box will have corresponding overlay. so as the user changes item in list box i want to highlight corresponding overlay

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 1 of 17
(5,088 Views)
Hope this helps
Message 2 of 17
(5,077 Views)

once they are drawn i would like to change the colors of few shapes in overlays.


Can you explain  it  more clearly?
0 Kudos
Message 3 of 17
(5,077 Views)

The only way I know to change the color of an overlay is to remove all the overlays and redraw them.  If you are just drawing several boxes, that would be pretty easy.

Bruce

Bruce Ammons
Ammons Engineering
Message 4 of 17
(5,053 Views)
You can try creating an event structure, where each event is triggered when a button is pressed (say you have a list of buttons where there is one button for each overlay). When a button is pressed, clear that specific overlay and redraw it in the new color.

Note: To clear a specific overlay give the overlay a group name and use this name as the group input to IMAQ Clear Overlay.

Does this help?
--Michelle

National Instruments
Message 5 of 17
(5,037 Views)

In My Application user will perform various measurements on screen. Lets Say user can measure length and angle

when ever user measures anything an overlay will appear on image and at the same time measurement will be added to a table(Actually a multicolumn list box) present on front panel.

now lets say user has performed more than 20 measurements and now he want to know where the measurement no 3 in list box was performed.

so what i want to program is by default all the overlays will be of green color and when user selects measurement no 3 from table corresponding overlay will turn red or some color other than green

Unfortunataly the overlays i am putting on image are not just one simple shape like rectangle. for one measurement the overlay might consist of Text+Points+Rectangle+Line+Arc and parameters for these shapes are calculated based on measurement data itself.

in this application it will be diffult to Recalculate all the measurements user has performed just to update overlay. and i couldnt find any way to extract overlay information which is already in place, so that i can redraw it with different color

 

does somebody knows any method to extract overlay from image?

Thanks for your help

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 6 of 17
(5,029 Views)

Hi muks

 

I do not need to convert ROI to Overlay. I actually have overlay(not ROI) present on the image, and i want to change its color

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 7 of 17
(5,029 Views)

Hi Michelle

I could not get your solutions, i could not find group name input for clear overlay VI

Can you please help me out by posting a small example code.

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 8 of 17
(5,029 Views)
Hi tushar please check the attachment.I have tried something for you
Message 9 of 17
(5,026 Views)
Just hope joe doesnt download this for the usage of local variables in the programSmiley Very Happy
Message 10 of 17
(5,023 Views)