Remove scale parameter from distortion correction

Scale is no longer useful in LensCorrection::correctDistortion. Remove
the scale parameter from the functions.
This commit is contained in:
Lawrence
2020-01-02 18:33:35 -08:00
parent 512517327f
commit b266cb7ca3
5 changed files with 16 additions and 20 deletions

View File

@@ -267,7 +267,7 @@ bool ImProcFunctions::transCoord (int W, int H, const std::vector<Coord2D> &src,
}
if (pLCPMap && params->lensProf.useDist) {
pLCPMap->correctDistortion(x_d, y_d, 0, 0, 1);
pLCPMap->correctDistortion(x_d, y_d, 0, 0);
}
// rotate
@@ -946,7 +946,7 @@ void ImProcFunctions::transformGeneral(bool highQuality, Imagefloat *original, I
}
if (enableLCPDist) {
pLCPMap->correctDistortion(x_d, y_d, w2, h2, 1); // must be first transform
pLCPMap->correctDistortion(x_d, y_d, w2, h2); // must be first transform
}
// rotate