How do I measure distances in an image?

Posted by Ram Bhat on Stack Overflow See other posts from Stack Overflow or by Ram Bhat
Published on 2010-05-21T16:41:42Z Indexed on 2010/05/21 17:10 UTC
Read the original article Hit count: 233

Let's say we have an image like so

alt text

Let's say we've already used filters and an edge detection algorithm in this pic. Now my goal is to measure distances (NOT actual distances, distance can be in any arbitrary unit) . eg: How do I find the length of the hall? (until the window)

Or the height of the bookshelves? How exactly do you place the "scale" and measure. I'm looking for ideas. However it would help if the answers were in terms of OpenCV.

© Stack Overflow or respective owner

Related posts about image-processing

Related posts about photogrammetry