by ʇolɐǝz ǝɥʇ qoq

Submit your Photo
Hall of Fame

Please participate in Meta
and help us grow.

Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an image of a wall taken from a phone camera from a known height h from the ground.

Assume that the camera was held perfectly parallel to the wall and that the bottom of the image is perfectly aligned with the bottom of the wall.

Is there a way to find out the point in the image that corresponds to the height h ? (i.e if I drew an imaginary line (that's parallel to the ground) from the camera lens to the wall, at what point would the intersection of the line on the wall show up in the image ?

I know the focal length of the camera, if that helps.

share|improve this question
up vote 1 down vote accepted

Focal length is irrelevant in this instance, if the camera image plane is parallel to the wall, and the bottom of the image is aligned to the bottom of the wall as you state, then the amount of wall in the picture will be twice the camera height.

The part of the image that corresponds to the wall at height h  will be h /2c  multiplied by the image height in pixels (where c is the camera height).

So if the camera is at a height of 1m, then you have 2m of wall in the photo. If h = 1.5m and your image is 2000 pixels high then h will be 1500 pixels up from the bottom of the image.

share|improve this answer

If the camera is parallel with the wall then the centre pixel should be at the same height as the centre of the camera sensor as long as the camera acts normal. By normal I mean that the camera have a lens that does not distort the image, e.g. with a tilt-shift lens.

If the camera is not parallel with the wall, this is no longer true.

share|improve this answer
Exactly. If parallel, the centre of the image would be the spot directly opposite the camera – MikeW Aug 12 '13 at 7:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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