Fix temp image dimensions in transform (#5594)

The temporary image should be the same size as the transformed image,
not the original image.
This commit is contained in:
Lawrence Lee
2020-07-01 11:15:06 -07:00
parent 1b5296e0a6
commit 55a8238971

View File

@@ -695,7 +695,7 @@ void ImProcFunctions::transform (Imagefloat* original, Imagefloat* transformed,
// steps, using an intermediate temporary image. There's room for
// optimization of course...
if (pLCPMap && params->lensProf.useCA && pLCPMap->isCACorrectionAvailable()) {
tmpimg.reset(new Imagefloat(original->getWidth(), original->getHeight()));
tmpimg.reset(new Imagefloat(transformed->getWidth(), transformed->getHeight()));
dest = tmpimg.get();
}
}