2

first post so please be nice. I am doing an image processing project and my problem is now that I would like to know how big my digital image is in the real world.

I have: digital image: 336x256 pixel

camera focal length: 9mm

camara aperture: f/1,25

camera distance: 40m

pixel pitch: 17 micro m

FOV: 35° x 27°1.889 mr

Is there a way to calculate the real width and height of the image?

closed as off-topic by mattdm, Hueco, Philip Kendall, Michael C, osullic Mar 6 at 22:36

  • This question does not appear to be about photography within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 5
    I'm voting to close this question as off-topic because it is about using a camera as a measuring device rather than as a photographic tool. – mattdm Mar 6 at 19:30
  • 2
    @SebastianKo That's unfortunate. Can you point to where you were redirected from? – mattdm Mar 6 at 20:38
  • 4
    How is a question like this not considered part of technical photography? - Not all photography is about 'making pretty pictures', some of us deal with photography as a means to gather data for science and engineering or other purposes. – TheLuckless Mar 6 at 21:57
  • 2
    Even if this question is not off topic, it is certainly a duplicate of dozens of other more or less identical existing questions here. They're not that hard to find, even with SE's poor search engine. – Michael C Mar 6 at 22:44
  • 4
    Note: this question is being discussed on Stack Overflow's Meta site: meta.stackoverflow.com/q/380966/1709587 – Mark Amery Mar 8 at 0:21
4

The actual focal length if the lens depends on the focus, so you cannot even trust was is reported in the EXIF data or even the markings on the lens. If the settings are repeatable (prime lens...) your best bet is to calibrate the image by shooting a known object (typically a rule/tape measure), and measuring its size in pixels in the resulting shot, and then apply a ratio when measuring object sizes in pixels in the subsequent shots.

In Gimp (and perhaps in other photo editors), you can specify an arbitrary pixel/physical length ratio, so with the proper ratio set the measure tool can give direct readings in physical units (meters/feet/cubits/furlongs...).

  • Even prime lenses suffer from geometric distortion that make magnification slightly different in different areas of the image field. The also often suffer from focus breathing when different aperture settings are used (which affects the size of slightly out-of-focus objects). – Michael C Mar 6 at 22:39
  • 1
    Yes, but this can be corrected. – xenoid Mar 6 at 23:00
0

In theory, yes (see zillions of other questions on this same topic, like this one), but in practice except in some constrained situations, not usefully. Digital cameras designed for making photographs do not make precise measuring devices.

  • I read a little about cameras now. And as I understand it, can't I just multiple the pixel* pixel pitch to get the sensor size? – Sebastian Ko Mar 6 at 20:51
  • Well, given that you have the focal length and the angle of view, I think you can calculate the sensor size roughly as 5.67mm x 4.32mm... Or, based on pixel pitch and count, approximately 5.71mm x 4.35mm... Which actually agrees more closely than I expected... – twalberg Mar 6 at 20:52
  • That will give you an approximate size. – mattdm Mar 6 at 20:52
  • @twalberg Field of view and pixel pitch were edited into the question after I answered. – mattdm Mar 6 at 20:54
  • Ah... didn't review the edit history. – twalberg Mar 6 at 20:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.