From 8e4c4be6d60fc70d7ec96ffba5254fa8a64d7193 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Tue, 12 Apr 2016 13:38:27 +0200 Subject: [PATCH] Allow lcp distortion correction for lenses without focal length information (e.g. lenses without chip) --- rtengine/iptransform.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/iptransform.cc b/rtengine/iptransform.cc index a1078e84f..547ebf69c 100644 --- a/rtengine/iptransform.cc +++ b/rtengine/iptransform.cc @@ -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,