ffollett / osm-bundler

Automatically exported from code.google.com/p/osm-bundler
0 stars 0 forks source link

Sensor Size not found in Exif #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In Noah original shell script he first checks the database for camera 
info for a particular model.  If he doesn't find it he then looks in the 
EXIF data.

With the sensor size Bundler incorporated twice as many image in my 
particular test.

I've written a patch.  The second index of the FocalPlaneXResolution tag 
tells you how large the sensor is in . . . some units.  And the 
FocalPlaneResolutionUnit tells you what those units are.

Noah uses jhead to read the EXIF data so I looked at jhead's source, his 
formula for finding the CCD size didn't work or make sense to me.

line 1054 - ImageInfo.CCDWidth = (float)(ExifImageWidth * FocalplaneUnits 
/ FocalplaneXRes);

My formula is simply CCDWidht = FocalPlaneXResolution[1] * 
FocalPlaneResolutionUnit

Original issue reported on code.google.com by jvanderd...@gmail.com on 18 Apr 2010 at 8:14

Attachments: