Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lensfun-0.3 - LF_DIST_MODEL_FOV1 removed #140

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment
Open

Lensfun-0.3 - LF_DIST_MODEL_FOV1 removed #140

GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Hi,

lensfun-0.3 has no LF_DIST_MODEL_FOV1 anymore:

  ---
  title: Changelog for release 0.3.0
  layout: default
  ---
  [...]
  * The field-of-view distortion model (FOV1) was removed because it is
    inherently flawed
  [...]

Original issue reported on code.google.com by [email protected] on 1 Dec 2014 at 8:51

@GoogleCodeExporter
Copy link
Author

diff -r 2debcb532cbd Sources/ptConstants.h
--- a/Sources/ptConstants.h Sun May 25 15:40:27 2014 +0700
+++ b/Sources/ptConstants.h Mon Dec 01 21:52:31 2014 +0100
@@ -222,7 +222,6 @@
 const short ptLfunDistModel_None      = LF_DIST_MODEL_NONE;
 const short ptLfunDistModel_Poly3     = LF_DIST_MODEL_POLY3;
 const short ptLfunDistModel_Poly5     = LF_DIST_MODEL_POLY5;
-const short ptLfunDistModel_Fov1      = LF_DIST_MODEL_FOV1;
 const short ptLfunDistModel_PTLens    = LF_DIST_MODEL_PTLENS;


diff -r 2debcb532cbd Sources/ptGuiOptions.cpp
--- a/Sources/ptGuiOptions.cpp  Sun May 25 15:40:27 2014 +0700
+++ b/Sources/ptGuiOptions.cpp  Mon Dec 01 21:52:31 2014 +0100
@@ -177,7 +177,6 @@
   {ptLfunDistModel_None,     QObject::tr("None") },
   {ptLfunDistModel_Poly3,    QObject::tr("3rd order polynomial") },
   {ptLfunDistModel_Poly5,    QObject::tr("5th order polynomial") },
-  {ptLfunDistModel_Fov1,     QObject::tr("1st order field of view") },
   {ptLfunDistModel_PTLens,   QObject::tr("Panotools lens model") },
   {-1,NULL}};

diff -r 2debcb532cbd Sources/ptMainWindow.cpp
--- a/Sources/ptMainWindow.cpp  Sun May 25 15:40:27 2014 +0700
+++ b/Sources/ptMainWindow.cpp  Mon Dec 01 21:52:31 2014 +0100
@@ -3067,7 +3067,6 @@
   short DistModel = Settings->GetInt("LfunDistModel");
   LfunDistPoly3Container->setVisible(DistModel == ptLfunDistModel_Poly3);
   LfunDistPoly5Container->setVisible(DistModel == ptLfunDistModel_Poly5);
-  LfunDistFov1Container->setVisible(DistModel == ptLfunDistModel_Fov1);
   LfunDistPTLensContainer->setVisible(DistModel == ptLfunDistModel_PTLens);
 }

diff -r 2debcb532cbd Sources/ptProcessor.cpp
--- a/Sources/ptProcessor.cpp   Sun May 25 15:40:27 2014 +0700
+++ b/Sources/ptProcessor.cpp   Mon Dec 01 21:52:31 2014 +0100
@@ -2238,12 +2238,6 @@
         DistortionData.Terms[1] = Settings->GetDouble("LfunDistPoly5K2");
         DistortionData.Terms[2] = 0.0;
         break;
-      case LF_DIST_MODEL_FOV1:
-        modflags |= LF_MODIFY_DISTORTION;
-        DistortionData.Terms[0] = Settings->GetDouble("LfunDistFov1Omega");
-        DistortionData.Terms[1] = 0.0;
-        DistortionData.Terms[2] = 0.0;
-        break;
       case LF_DIST_MODEL_PTLENS:
         modflags |= LF_MODIFY_DISTORTION;
         DistortionData.Terms[0] = Settings->GetDouble("LfunDistPTLensA");

Original comment by [email protected] on 1 Dec 2014 at 8:53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant