Allow lcp distortion correction for lenses without focal length information (e.g. lenses without chip)

This commit is contained in:
heckflosse
2016-04-12 13:38:27 +02:00
parent 44b9fdaae8
commit 8e4c4be6d6

View File

@@ -236,7 +236,7 @@ void ImProcFunctions::transform (Imagefloat* original, Imagefloat* transformed,
LCPMapper *pLCPMap = NULL;
if (needsLCP() && focalLen > 0) {
if (needsLCP()) { // don't check focal length to allow distortion correction for lenses without chip
LCPProfile *pLCPProf = lcpStore->getProfile(params->lensProf.lcpFile);
if (pLCPProf) pLCPMap = new LCPMapper(pLCPProf, focalLen, focalLen35mm, focusDist, 0, false, params->lensProf.useDist,