Is this formula correct??

조회 수: 2 (최근 30일)
Carole
Carole 2012년 12월 3일
Hello,
To find the real size of an object can I use this formula
Objects original size (in m) = Objects size on sensor (in mm) * distance between camera and object (in m) / focal length (in mm)
knowing these informations
size of object: 400 pixels
working distance: 31 mm
thanks
  댓글 수: 4
Walter Roberson
Walter Roberson 2012년 12월 3일
We still don't understand why you don't just put an object of known size into the device and measure on the resulting image??
Carole
Carole 2012년 12월 3일
I can't do this because I don't have the device used. I have just the image.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2012년 12월 3일
Yes, that is the thin lens equation. Do you have all those quantities? Note that the size of the object is in mm, not pixels. So you have to know what length 400 pixels corresponds to on your sensor. And 31 mm is awfully close - are you sure the thin lens equation holds in that kind of "macro focus" situation? I have doubts. And if you use a good lens, for things very close (not at infinity) then the thin lens equation is not so clear. The working distance (scene-to-front of lens) is not the same as the scene-to-front principal plane for a thick lens.
This seems like the hard way of doing it though. Why not just measure something of a known length to get a spatial calibration factor?
  댓글 수: 24
Carole
Carole 2012년 12월 17일
thanks :)
Walter Roberson
Walter Roberson 2012년 12월 17일
... for this one device.

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by