MATLAB Answers


How to compute the sensor sizes in mm from exif data of an image

Asked by Carine on 14 May 2015
Latest activity Edited by Carine on 14 May 2015
Here are the metadata of my image obtained with imfinfo and imfinfo.DigitalCamera:
imf =
Filename: [1x132 char]
FileModDate: '02-Oct-2014 16:32:28'
FileSize: 7115736
Format: 'jpg'
FormatVersion: ''
Width: 4608
Height: 3456
BitDepth: 24
ColorType: 'truecolor'
FormatSignature: ''
NumberOfSamples: 3
CodingMethod: 'Huffman'
CodingProcess: 'Sequential'
Comment: {}
ImageDescription: ' '
Make: 'NIKON'
Model: 'COOLPIX AW100 '
Orientation: 1
XResolution: 300
YResolution: 300
ResolutionUnit: 'Inch'
Software: 'COOLPIX AW100V1.0 '
DateTime: '2014:10:02 16:32:29'
YCbCrPositioning: 'Co-sited'
DigitalCamera: [1x1 struct]
GPSInfo: [1x1 struct]
ExifThumbnail: [1x1 struct]
ans =
ExposureTime: 0.0400
FNumber: 3.9000
ExposureProgram: 'Normal program'
ISOSpeedRatings: 400
ExifVersion: [48 50 51 48]
DateTimeOriginal: '2014:10:02 16:32:29'
DateTimeDigitized: '2014:10:02 16:32:29'
ComponentsConfiguration: 'YCbCr'
CompressedBitsPerPixel: 4
ExposureBiasValue: 0
MaxApertureValue: 3.9000
MeteringMode: 'Pattern'
LightSource: 'unknown'
Flash: [1x148 char]
FocalLength: 5
MakerNote: [1x10536 double]
UserComment: [1x128 double]
FlashpixVersion: [48 49 48 48]
ColorSpace: 'sRGB'
CPixelXDimension: 4608
CPixelYDimension: 3456
InteroperabilityIFD: [1x1 struct]
FileSource: 'DSC'
SceneType: 'A directly photographed image'
CustomRendered: 'Normal process'
ExposureMode: 'Auto exposure'
WhiteBalance: 'Auto white balance'
DigitalZoomRatio: 0
FocalLengthIn35mmFilm: 28
SceneCaptureType: 'Landscape'
GainControl: 'High gain up'
Contrast: 'Normal'
Saturation: 'Normal'
Sharpness: 'Normal'
SubjectDistanceRange: 'Close view'
UnknownTags: [1x1 struct]
I guess from this information, I should be able to compute the width and height of the sensor but I cannot manage to figure out how. Note that I cannot manually enter the CDD width or any other information. Would you have any idea?


Sign in to comment.

0 Answers