Spot-Removal (#2239): Adding recusivity and border handling

Warning: Debug builds will be slow due to the amount of debug output (no problem for Release builds). Code cleanup will be done when after testing phase.
This commit is contained in:
Hombre
2019-08-14 15:52:22 +02:00
parent 122e0b89be
commit 4d4f54cbc2
4 changed files with 586 additions and 216 deletions

View File

@@ -781,7 +781,12 @@ private:
params.toneCurve.brightness = 0;
params.toneCurve.contrast = 0;
params.toneCurve.black = 0;
}
}
// Spot Removal
if (params.spot.enabled && !params.spot.entries.empty ()) {
ipf.removeSpots (baseImg, imgsrc, params.spot.entries, pp, currWB, tr);
}
// at this stage, we can flush the raw data to free up quite an important amount of memory
// commented out because it makes the application crash when batch processing...
@@ -924,12 +929,6 @@ private:
}
}
// Spot Removal
if (params.spot.enabled && !params.spot.entries.empty ()) {
ipf.removeSpots (baseImg, imgsrc, params.spot.entries, pp, currWB, tr);
}
// RGB processing
curve1 (65536);