Re: Measuring angles in an image.



On Apr 14, 7:50 am, "Stewart DIBBS" <s...@xxxxxxxxx> wrote:
"Geobird" <a1chan...@xxxxxxxxx> wrote in message

news:d34d04a4-fe76-4366-b06c-5889f5d725a1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> Given that you have the distance from camera to the centre of the
image  you are going to capture ( principle point) , is it possible to
measure the angle subtended  by any element on the  image with respect
to camera axis.

Depends entirely on the lens. You can probably work it out from the lens
specification, but the simplest method is set up a reference grid/ruler at
(say) 1m, set the lens to focus at infinity and see how many pixels the lens
subtends. This is OK with a single focus lens, you'd need to do multiple
measurements for different settings on a zoom lens.

After this "calibration" process, its simple to work out the angular
relationship of the image center pixel with any other pixel.

--
regards,
Stewart DIBBS
==========================================
PiXCL 8: The Advanced Image Analysis Suite
is affordable and available now.
==========================================www.pixcl.com

Stewart:
I don't see it. I can see how the spatial calibration depends on the
lens but I don't think the angle does. If you're looking at a flag
pole that is 100 meters away from your camera's lens, and the flag
pole is 10 meters high, then the angle is arctan(10/100) = 5.7
degrees. Ignoring things like optical distortions, how does that
depend on the lens? Also, no matter how complicated the lens is, the
angle on the field side of the lens will be the same as the angle on
the focus side of the lens, except in the case where the index of
refraction is different (for example, scene is underwater and sensor
is in air inside the camera). Now if your sensor was 2048 pixels
high, then it would be 1024 pixels from center to top, and simple trig
will get you the angle (which will be the same on both sides of the
lens) for any pixel in between. This would be
theta = arctan((p*maxY)/(maxP*d)),
where p is the pixel distance from the center to the point in
question, maxP is the number of pixels from the center to the top of
the image, maxY is the distance in the field from the optic axis to
the edge of the field, and d is the distance of the scene from the
camera. Changing the focal length of the lens will change the size of
the image and the distance of the image from the back vertex of the
lens but it will not change the angle. I'm pretty sure all you need
are the parameters I listed.
Regards,
ImageAnalyst
.



Relevant Pages

  • Re: Nikon D40 with 300mm lens AND teleconverter (Nikkor AF-S Teleconverter TC-20E II)
    ... angle of view *now*, but he will in time as he gets used to using ... Are you telling me that when you think "18mm on a 1.5 factor camera", ... of view, the "look," of a 28mm lens on a 35 for example. ... lenses one naturally thinks in terms of field of view, ...
    (rec.photo.digital.slr-systems)
  • Re: Light fall off on dSLRs - an experiment
    ... the lens, which was quite simple - eliminate the lens! ... The Canon 5D camera without lens was mounted on a tripod about 80cm from ... angle of incidence than would be possible with a real lens. ...
    (rec.photo.digital.slr-systems)
  • Re: Nikon D40 with 300mm lens AND teleconverter (Nikkor AF-S Teleconverter TC-20E II)
    ... angle of view *now*, but he will in time as he gets used to using lenses ... Are you telling me that when you think "18mm on a 1.5 factor camera", ... a 75-degree lens; I think of it as a 28 and I know what photos taken with it ... camera and the human eye and brain are at their largest. ...
    (rec.photo.digital.slr-systems)
  • Re: Rumblings about huge megapixel offerings...
    ... on the sensor would be round... ... record all the image that was being received from your lens... ... perfectly orienting the camera with respect to the horizon to ensure ... concentric circles of other pixels around it perhaps... ...
    (rec.photo.digital.slr-systems)
  • Re: Bob Hatch, camera gear
    ... that I'd buy the highest pixel count (making sure it has a lens to use all ... The problem of finding a camera with the lens to use all those pixels isn't ... open the iris fully and adjust the shutter speed to match ...
    (rec.outdoors.rv-travel)