From bc6dad6eb9df4809a4f7d562b612baf0f9c4889a Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Tue, 23 Jan 2018 00:16:19 +0100 Subject: [PATCH] histogram matching: fixed typo in calculating the crop --- rtengine/histmatching.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/histmatching.cc b/rtengine/histmatching.cc index 699448bbb..4216c4581 100644 --- a/rtengine/histmatching.cc +++ b/rtengine/histmatching.cc @@ -203,7 +203,7 @@ void RawImageSource::getAutoMatchedToneCurve(std::vector &outCurve) std::cout << "histogram matching: cropping target to get an aspect ratio of " << std::fixed << std::setprecision(2) << thumb_ratio << ":1, new full size is " << fw << "x" << fh << std::endl; } } - PreviewProps pp(0, 0, fw, fh, skip); + PreviewProps pp(cx, cy, fw, fh, skip); ColorTemp currWB = getWB(); std::unique_ptr image(new Imagefloat(int(fw / skip), int(fh / skip))); getImage(currWB, TR_NONE, image.get(), pp, neutral.toneCurve, neutral.raw);