LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get position from image

Hello Everyone,

 

attatcthed you can see a VI, which gets the click position on an image in pixels.

 

I hope the question makes sense: at the moment, any click on the image gets me new position (even if use the loop to zoom in or zoom out i get a new positon). I want to get the position by using only the arrow for example and not the other tools (see screenshot)

does anyone know how to do that? 🙂 

Thanks in advance!

 

Download All
0 Kudos
Message 1 of 5
(1,017 Views)

there is 2 positions you can get from IMAQ picture control, on is the mouse pointer relative in the front panel, the other is the position of the pixel you click on. not sure which position you are trying to get, can you elaborate?

 

perhaps if this is posted in Vision can get more help

CY (expired CLAD)
0 Kudos
Message 2 of 5
(989 Views)

Thanks for your reply 🙂 

Im trying to get the pixel position when i click on the image But only when using the ROI tool: Selection.

I keep getting the pixel position no matter which tool im using, for example: if i want to use the zoom tool, i dont want to register the pixel positions while im zooming.

 

I hope i could express myself 🙂 

 

0 Kudos
Message 3 of 5
(983 Views)

using event structure, mouse down & image control property node(ROI tool) to case structure

 

CY (expired CLAD)
0 Kudos
Message 4 of 5
(974 Views)

*Current ROI Tool

CY (expired CLAD)
0 Kudos
Message 5 of 5
(958 Views)