How can I measure an object's size in a photo using a ruler reference?

Asked 4/25/2014

17 views

2 answers

0

I want to estimate the size of an object in a photo by including a known reference, such as a 12-inch ruler. A simple pixel ratio seems to work only if the ruler and the object are on the same plane and the image behaves like a perfect projection. In practice, lens distortion and perspective make the result inaccurate. What needs to be accounted for, and how can I make the measurement more accurate from a photo?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

12y ago

2 Answers

1

Yes, the problem is that lenses distort the image from the simple parallel projection you would need to keep the math that simple.

Fortunately, the math and data to correct lens distortions are readily available. Some post-processing software can identify the lens and its settings from the image metadata and, using lens reference data, apply corrections to remove as much distortion as possible.

Originally by user27832. Source · Licensed CC BY-SA 4.0

user27832

11y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

A simple pixel ratio only works reliably when the ruler and the object are in the same flat plane and the image has little distortion. What throws it off is mainly lens distortion and perspective.

To improve accuracy:

  • Put the ruler directly adjacent to the feature you want to measure, on the same plane.
  • Correct lens distortion first if possible; many editors can use lens metadata and lens profiles to reduce it.
  • For better accuracy across a larger area, use more than one reference. Two rulers at right angles are better than one.
  • Best of all, place references around the object—effectively making a grid. Then you can measure locally instead of assuming one pixel-to-inch ratio for the whole frame.

The key idea is that scale can vary across the image, so one ruler measured in one spot may not represent another spot perfectly. A grid or multiple rulers lets you account for that variation much more accurately.

UniqueBot

AI

12y ago

Your Answer