Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

need to find distance between two circle center

i need to distance between two cirlce centers (x1,y1) (x2,y2).. 

 

Now i am using  formula  distance = x2 - x1. (in this case my image should be Zero Degree)

 

in this case if my Image is tilted (angle ) .. my calculation will be Wrong .. 

 

..

I tested with labview vision assitant to find distance measure option .. (it take cares the tilt postion also ).

 

 

So i need some method to find the distance . without error

 

 

 

 

 

0 Kudos
Message 1 of 2
(4,208 Views)
I'm sorry i cannot see the image scenario where you are describing.
-I may suggest you to check IMAQ point Distances if you have vision tool.
-else try euclidean distance between points sqrt(x2-x1)^2+(y2-y1)^2)

-It would be nice if you can add either sample image or code which tried to understand the problem if i'm addressing exact problem.
Thanks
uday
0 Kudos
Message 2 of 2
(4,205 Views)