# simple measure over an image

Hi everyone, I Need to take a measure (euclidean distance) over a set of selected points on an image. In order to make this simple I broke down all the process in steps:

2. Recognicing the pattern to calibrate measure
3. Selecting points "from" and "to" in order to measure the distance between them

For my first iteration i will load a picture (half of number 1), select the pattern manually(a rough aproximation of number 2) and select point to measure distances between them. I'm just beginig with openCV, Do I need openCV for my fist iteration?

edit retag close merge delete

For me your question is still to vague... Do you want to find euclidean distance in 2D between points in a single image? Or do you want to get the 3D euclidean distance of two points in a space, that have been defined in two stereo photo's? Because the second approach is a lot more complicated, including camera calibration, coordinate system conversions, mapping to 3D points, ...

Euclidean distance in 2D between two points in a single image

Sort by » oldest newest most voted

So if you know the points with their (x,y) e.g. (x1,y1) and (x2,y2)
the distance is sqrt((x2-x1)^2+(y2-y2)^2)

If you mean the 2d spatial distance in the image.

more

Yes. The user will define the points over the image, so I will know their coordinates

Do you mean spatial distance? What you mean exactly, do you need all the distances between all the points?

more

Official site

GitHub

Wiki

Documentation