08-27-2014 01:53 AM
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
Solved! Go to Solution.
08-27-2014 06:28 AM
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
08-27-2014 07:31 AM
Hello,
Yeah, I had the same silly idea before!
The perimiter of the oval is colored, but the oval itself is white.
Best regards,
K
08-27-2014 07:42 AM
hummm funny... the interior becomes gray when I do that, what's your VDM version? I have 2013.08.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
08-28-2014 12:39 AM
Hello,
I have the same version - august 2013. The IMAQ overlay oval is version 13.0, revision 28.
Here is my screenshot:
If I use the zoom tool the shade is indeed more gray-ish:
Best regards,
K
08-28-2014 12:47 AM
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
08-28-2014 01:14 AM - edited 08-28-2014 01:14 AM
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
08-28-2014 06:38 AM
P.S: Can someone from NI explain, why the oval cannot be overlaid apparently transparent on an image (highlight option)?
Best regards,
K
08-29-2014 07:36 AM
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.
08-29-2014 08:02 AM
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