Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

draw highlighted pixel

Solved!
Go to solution
Hi all!

I have a problem. I would like to create an own template editor. In NI Template editor - Pattern Matching Mask creation is very cool.
I wanna do the same. So, when I hold the mouse button, I can draw full red pixel. ( It is OK, using standard picture function), but when Mouse UP, the colored region become highlighted.(i.e. Circles/ovals, user defined shapes for Masking the template.)

Could you help me, how to do that, when Mouse Up, the colored region becomes highlighted.

( I have tried IMAQ Draw Rectangle  - The color OK, i can not define shapes by redding a part of an image.)

Thank you very much! 
---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 1 of 7
(3,995 Views)
The only functions to interactively define the roi is draw functions. If want to overlay you can define the points and use overlay points.
0 Kudos
Message 2 of 7
(3,929 Views)

Did you try "imaq select point" ?

 

see.JPG

0 Kudos
Message 3 of 7
(3,928 Views)

Hi!

Thats what I wanna do! upload.png so, the overlay has a little transparency. I used many things without any success. 😞

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 4 of 7
(3,921 Views)

btw, let me correct myself.
My problem is not to set transparency for rectangle overlay. My question is how to set transparency for all kind of overlays. The best could be, If I can use transparency for my freehand drawing like in Template Editor.

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 5 of 7
(3,920 Views)
Solution
Accepted by topic author D60

As far as I can see, Highlight is supported for rectangles only.

 

So, you have two possible choices:

 

1. Convert you ROI to Mask, then overlay lot of small highlighted rectangles (1x1) according to your mask image. This way is easiest, but can be slow.

 

2. Convert ROI to Mask (or perform Merge Overlay, then generate mask), then convert your gray image to RGB, and then change pixel intencities (red channel) for simulation of highlight effect.

 

Andrey.

 

0 Kudos
Message 6 of 7
(3,908 Views)

Thank you very much!!!! 
It is so good that there are so many helpful people here! 

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 7 of 7
(3,905 Views)