35mm focal length on iPhone SE3 2nd generation over corrercted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Hugin |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
This is for an iPhone SE 3rd generation. Looking at the exif data for a zoomed picture I can see:
Lens Specification |3.990000, 3.990000, 1.8, 1.8
Lens Make |Apple
Lens Model |iPhone SE (3rd generation) back camera 3.99mm f/1.8
Digital Zoom Ratio |1.951
Focal Length in 35mm|55
For a normal picture:
Focal Length in 35mm|28
Scene Capture Type |Standard
Lens Specification |3.990000, 3.990000, 1.8, 1.8
Lens Make |Apple
Lens Model |iPhone SE (3rd generation) back camera 3.99mm f/1.8
Turns out the reported focal length for a zoomed picture is already corrected for the digital zoom factor so src/hugin_
--- a/src/hugin_
+++ b/src/hugin_
@@ -539,7 +539,7 @@
const float digitalZoom = Exiv2Helper:
if (eFocalLength35 > 0 && digitalZoom > 1)
{
- eFocalLength35 *= digitalZoom;
+ // eFocalLength35 *= digitalZoom;
};
float focalLength=0;
//The various methods to detmine crop factor
For images from other phones this line was needed. So I can't simply comment out this line.
Can you provide a sample image for testing? I don't know with which tool you checked the EXIF data.
Best would be an image without digital zoom and a other one with digital zoom.