Filter löschen
Filter löschen

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

4 Ansichten (letzte 30 Tage)
Carine
Carine am 14 Mai 2015
Kommentiert: Mike Leonard am 9 Jul. 2022
Hello,
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]
imf.DigitalCamera
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?
Cheers!
  1 Kommentar
Mike Leonard
Mike Leonard am 9 Jul. 2022
The only way I see of calculating the sensor size is using the actual "Focal Length" and "FocalLengthIn35mmFilm" ratio using the size of a standard 35 mm frame area. This would only be approximate but close. I don't know the formula, but it should not be hard to figure out. I did not see the "Actual Focal Length" listed in your Exif data. It is 2022 as I attempt to answer a 7 year old question. Hope it helps!
Better late than never?
Mike L.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Denoising and Compression finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by