diff --git a/rtengine/perspectivecorrection.cc b/rtengine/perspectivecorrection.cc index 7a56ef5a8..67c645a9d 100644 --- a/rtengine/perspectivecorrection.cc +++ b/rtengine/perspectivecorrection.cc @@ -304,14 +304,18 @@ PerspectiveCorrection::Params PerspectiveCorrection::autocompute(ImageSource *sr // TODO: Ensure image borders of rotated image do not get detected as lines. neutral.rotate = pparams->rotate; neutral.distortion = pparams->distortion; + neutral.perspective.camera_defish = pparams->perspective.camera_defish; + neutral.perspective.camera_focal_length = pparams->perspective.camera_focal_length; + neutral.perspective.camera_crop_factor = pparams->perspective.camera_crop_factor; + neutral.perspective.camera_scale = pparams->perspective.camera_scale; neutral.lensProf = pparams->lensProf; ImProcFunctions ipf(&neutral, true); - if (ipf.needsTransform(w, h, src->getRotateDegree(), src->getMetaData())) { + //if (ipf.needsTransform(w, h, src->getRotateDegree(), src->getMetaData())) { Imagefloat *tmp = new Imagefloat(w, h); ipf.transform(img.get(), tmp, 0, 0, 0, 0, w, h, w, h, src->getMetaData(), src->getRotateDegree(), false); img.reset(tmp); - } + //} // allocate the gui buffer g.buf = static_cast(malloc(sizeof(float) * w * h * 4));