Fixed too small spot in Tone mapping

This commit is contained in:
Desmis
2021-01-10 10:16:33 +01:00
parent 036257859d
commit a58376021b

View File

@@ -12235,7 +12235,8 @@ void ImProcFunctions::Lab_Local(
const int bfh = yend - ystart;
const int bfw = xend - xstart;
if (bfw >= mSP && bfh >= mSP) {
if (bfw >= mDEN && bfh >= mDEN) {
// printf("OK TM\n");
array2D<float> buflight(bfw, bfh);
JaggedArray<float> bufchro(bfw, bfh);
std::unique_ptr<LabImage> bufgb(new LabImage(bfw, bfh));