I took an image from my phone and got its exif data below. It was a samsung note 4, which uses a 35mm film size (24x36) with a 43.27 diagonal. But what I am trying to figure out is the sensor diagonal length value. To get that I divided the full frame length (43.27) by the scale factor value. The scale factor I got by dividing the FocalLengthIn35mmFilm by the focal length value.
But right now I have hardcoded in my code 43.27 for full frame length, but was wondering if there was a way to determine what the full frame length is based only on the data below? This is because I plan to use the same code but from the exif data of any phone camera.
Does anyone know?
Thanks
{
"ImageWidth": 5312,
"ImageHeight": 2988,
"Make": "samsung",
"Model": "SM-N910W8",
"Orientation": 6,
"XResolution": 72,
"YResolution": 72,
"ResolutionUnit": 2,
"Software": "N910W8VLU1DPE2",
"DateTime": "2016:07:16 16:26:34",
"YCbCrPositioning": 1,
"ExifIFDPointer": 240,
"GPSInfoIFDPointer": 3158,
"ExposureTime": 0.04,
"FNumber": 2.2,
"ExposureProgram": "Normal program",
"ISOSpeedRatings": 320,
"ExifVersion": "0220",
"DateTimeOriginal": "2016:07:16 16:26:34",
"DateTimeDigitized": "2016:07:16 16:26:34",
"ComponentsConfiguration": "YCbCr",
"ShutterSpeedValue": 4.64,
"ApertureValue": 2.27,
"BrightnessValue": 0.45,
"ExposureBias": 0,
"MaxApertureValue": 2.28,
"MeteringMode": "CenterWeightedAverage",
"LightSource": "Unknown",
"Flash": "Flash did not fire",
"FocalLength": 4.8,
"FlashpixVersion": "0100",
"ColorSpace": 1,
"PixelXDimension": 5312,
"PixelYDimension": 2988,
"InteroperabilityIFDPointer": 3128,
"SensingMethod": "One-chip color area sensor",
"SceneType": "Directly photographed",
"ExposureMode": 0,
"WhiteBalance": "Auto white balance",
"FocalLengthIn35mmFilm": 31,
"SceneCaptureType": "Standard",
"ImageUniqueID": "H16USHH04S",
"GPSVersionID": "2.2.0.0"
}