Add auto focal length for perspective in editor

If the focal length and/or crop factor for the camera-based perspective
correction tool are not edited, they will be set using the focal length
information found in the image metadata. This only applies to the editor
(batch editor and CLI still default to 24 for the focal length and 1 for
the crop factor).
This commit is contained in:
Lawrence Lee
2020-02-23 21:21:36 -08:00
parent 65e76df279
commit 9a594474d9
5 changed files with 67 additions and 10 deletions

View File

@@ -615,6 +615,7 @@ void ToolPanelCoordinator::initImage (rtengine::StagedImageProcessor* ipc_, bool
icm->setRawMeta (raw, (const rtengine::FramesData*)pMetaData);
lensProf->setRawMeta (raw, pMetaData);
perspective->setMetadata (pMetaData);
}