Ed, <br><br>I was actually hoping that you would respond...<br><br>The sensor measurement for the D200 is 15.8 x 23.6 mm <br><br>When I run the calculations based on sensor size, I get 535 x 800 using a focal length of 24mm and 803 x 1200 using a focal length of 36mm. It looks like the sweet spot may be somewhere in between. (Whether the issue is with the true focal length or not.)
<br><br>Thanks again for your help!<br><br>David.<br><br><br><div class="gmail_quote">On Dec 20, 2007 3:41 PM, Ed McNierney <<a href="mailto:ed@topozone.com">ed@topozone.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">David –</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I suspect the EXIF numbers are just hooey. Your image is 2,592
pixels by 3,872 pixels, and that's the number of pixels on the sensor chip in
the camera. You're unlikely to have a CCD in there that's 11 inches by 16
inches or so! At a quick glance it looks like this is the major problem; you
should be working with the actual sensor size (just as you would work with the
actual size of the negative in a film camera). </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><span>-<span>
</span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);">Ed</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Ed McNierney</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Chief Mapmaker</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Demand Media / TopoZone.com</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">73 Princeton Street, Suite 305</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">North Chelmsford, MA 01863</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><a href="mailto:ed@topozone.com" target="_blank"><span style="color: blue;">ed@topozone.com</span></a></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Phone: +1 (978) 251-4242</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Fax: +1 (978) 251-1396</span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:fwtools-bounces@lists.maptools.org" target="_blank">fwtools-bounces@lists.maptools.org</a> [mailto:<a href="mailto:fwtools-bounces@lists.maptools.org" target="_blank">fwtools-bounces@lists.maptools.org</a>
] <b>On
Behalf Of </b>David Fawcett<br>
<b>Sent:</b> Thursday, December 20, 2007 4:16 PM<br>
<b>To:</b> <a href="mailto:fwtools@lists.maptools.org" target="_blank">fwtools@lists.maptools.org</a><br>
<b>Subject:</b> [FWTools] Calculating ground distance from altitude and
focallength : off topic</span></p>
</div><div><div></div><div class="Wj3C7c">
<p> </p>
<p>This question doesn't relate to FWTools functionality, but
this seemed like the best place to ask a question like this. I am using
gdal to get some of the image info...<br>
<br>
I have a case where I have an image shot from an airplane. I have the
below info: <br>
<br>
height of plane = 1221 meters<br>
focal length = 24mm (digital camera, so ~36mm film)<br>
EXIF value for X and Y Resolution is 240 (inches)<br>
The image dimensions are 2592 x 3872 pixels<br>
<br>
I am trying to calculate the approximate dimensions of this image in ground
units (meters). <br>
<br>
I believe that I can calculate the scale of the image by:<br>
<br>
focal length in mm / 1000 mm per meter/ altitude in meters or<br>
<br>
36 / 1000 / 1221 = 0.036 / 1221 = 0.000029484 <br>
<br>
If the resolution of the image is 240 px per inch, I should be able to
calculate an image size in meters: <br>
<br>
image height= 2592px / 240 px per inch / 39.37 inches per meter = .274321
meters<br>
<br>
image width= 3872px / 240 px per inch / 39.37 inches per meter = .409787 meters<br>
<br>
So using the scale value, I should be able to calculate meters on the ground by
taking: <br>
<br>
.274321 meters / 0.000029484 = 9304 meters<br>
<br>
width on ground = .409787 meters / 0.000029484 = 13898 meters<br>
<br>
When I look at the same image that I have georeferenced in a GIS, the image
measures about 1000m x 685m. <br>
<br>
I am sure that I am totally screwing this up, and may even be in a case of
can't-get-there-from-here. I would appreciate any input that anyone
has. <br>
<br>
I fully understand all of the limitations to this methodology, I am trying for
something that is quick, dirty, and automated. I have a bearing and will
be doing rotation later, I just first want to get the ground units correct. <br>
<br>
Thanks, <br>
<br>
David.</p>
</div></div></div>
</div>
</blockquote></div><br>