Ask Your Question
0

simple measure over an image

asked Aug 2 '13

JnDnl gravatar image

updated Aug 2 '13

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:

  1. Taking/Loading a photo (with a known pattern in it)
  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?

Thanks in advance :)

Preview: (hide)

Comments

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, ...

StevenPuttemans gravatar imageStevenPuttemans (Aug 2 '13)edit

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

JnDnl gravatar imageJnDnl (Aug 2 '13)edit

2 answers

Sort by » oldest newest most voted
3

answered Aug 2 '13

ximobayo gravatar image

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.

Preview: (hide)

Comments

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

JnDnl gravatar imageJnDnl (Aug 2 '13)edit
0

answered Aug 2 '13

ximobayo gravatar image

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

Preview: (hide)

Comments

Each measure will be made between two points.

JnDnl gravatar imageJnDnl (Aug 2 '13)edit

Question Tools

Stats

Asked: Aug 2 '13

Seen: 496 times

Last updated: Aug 02 '13