Exprimental feature auto lens distortion correction, on behalf of Guokai; see issue #576

This commit is contained in:
Oliver Duis
2011-03-12 18:45:44 +01:00
parent aded66851e
commit 751dbfd408
38 changed files with 5463 additions and 7 deletions

View File

@@ -23,6 +23,7 @@
#include <imagesource.h>
#include <dfmanager.h>
#include <ffmanager.h>
#include <improcfun.h>
using namespace rtengine::procparams;
@@ -185,6 +186,7 @@ ToolPanelCoordinator::ToolPanelCoordinator () : ipc(NULL) {
flatfield->setFFProvider (this);
lensgeom->setLensGeomListener (this);
rotate->setLensGeomListener (this);
distortion->setLensGeomListener (this);
crop->setCropPanelListener (this);
icm->setICMPanelListener (this);
@@ -435,6 +437,12 @@ void ToolPanelCoordinator::straightenRequested () {
toolBar->setTool (TMStraighten);
}
double ToolPanelCoordinator::autoDistorRequested () {
if (!ipc)
return 0.0;
return rtengine::ImProcFunctions::getAutoDistor (ipc->getInitialImage()->getFileName(), 400);
}
void ToolPanelCoordinator::spotWBRequested (int size) {
if (!ipc)