Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

set a point as a reference

Hello

 

I have a cursor point diplayed on the center of my image and I would like to set this point as a reference or an origin. Because now I have to make my image rotate and find the new center of the rotated image so that I could compute the distance between the two points.

 

Thanks and let me know if more details are required.

0 Kudos
Message 1 of 4
(3,219 Views)

Hello luckyloic,

 

Could you provide a bit more information on your application? Is the cursor point part of your image and you are wanting to first find the location of that point then set it as a reference? Or are you manually tracking the position of your mouse?

Andy Chang
National Instruments
0 Kudos
Message 2 of 4
(3,192 Views)

Hello Andy

 

Sorry for the delay,

Yes my cursor point is part of my image

And I have already found automatically the location of that point and now I want to set it as a reference.

 

Let me know if it is enough

 

0 Kudos
Message 3 of 4
(3,181 Views)

Hello Luckloic,

 

Assuming you have the coordinate of the image which should be a cluster for two double. After you've rotated the image and found the center, you should be able to subtract the two x and y coordinate points to find the difference.

Andy Chang
National Instruments
0 Kudos
Message 4 of 4
(3,167 Views)