Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

highlight option in IMAQ overlay oval

Solved!
Go to solution

Hello fellow programers,

 

I was wondering if anybody could explain the following: why is there no "highlight" draw option in IMAQ overlay oval, eventhough the IMAQ overlay rectangle has this option?

 

Any simple alternative workarounds? I am measuring 3D displacements and trying to display the color gradient based on these displacements on a 2D image for clarity. I could I guess use a rectangle, but the ellipse shape suits me better...

 

Thank you and best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 1 of 14
(6,860 Views)

silly question : what happens if you connect a "highlight" enum constant to the IMAQ overlay oval?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 14
(6,850 Views)

Hello,

 

Yeah, I had the same silly idea before! Smiley Happy

The perimiter of the oval is colored, but the oval itself is white.

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 3 of 14
(6,847 Views)

hummm funny... the interior becomes gray when I do that, what's your VDM version? I have 2013.08.

 

Clipboard01.png


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 14
(6,843 Views)

Hello,

 

I have the same version - august 2013. The IMAQ overlay oval is version 13.0, revision 28.

 

Here is my screenshot:

 

Untitled.png

 

If I use the zoom tool the shade is indeed more gray-ish:

 

Untitled1.png

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 5 of 14
(6,833 Views)

Clipboard01.png

 

All right... so I assume it's not helping you.

I have no other idea, sorry.


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 6 of 14
(6,830 Views)

Hello,

 

thank you for the effort. I guess I could overlay bitmap, making the pixels outside the "ellipse" the same as underlying image pixels and customize the pixels inside the "ellipse"  with colored transparency. But this is more trouble than it's worth for me, so I guess I will use overlay oval and sacrifice transparency.

 

Thanks again and best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 7 of 14
(6,828 Views)

P.S: Can someone from NI explain, why the oval cannot be overlaid apparently transparent on an image (highlight option)?

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 8 of 14
(6,820 Views)

Hello guys,

 

 

This problem has been reported before -  for now Highlight mode is only supported for rectangles, and not for Arcs and Ovals, and changing this would require a fairly serious restructuring of the way overlays are done. However, I forwarded this issue and I hope that we have your understanding.

 

Regards,

Izabela.

Message 9 of 14
(6,796 Views)

Izabela,

 

thank you very much for your answer. Surely, I understand that you cannot satisfy everybody all the time. 🙂  I can do without transparency (it won't affect my program at all), but it would be cooler to see the transparent oval overlaid over the image...

 

 

Are there perhaps any simple methods to achieve this?

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 10 of 14
(6,790 Views)