Issue 2842: Fix by Ingo to prevent black square artifacts from appearing when using Post-Resize Sharpening - RL Deconvolution and a non-zero value for the Black slider.

This commit is contained in:
DrSlony
2015-07-22 21:36:07 +02:00
parent d4c1c437ee
commit 11093f939b

View File

@@ -886,7 +886,11 @@ IImage16* processImage (ProcessingJob* pjob, int& errorCode, ProgressListener* p
labView = tmplab; labView = tmplab;
cw = labView->W; cw = labView->W;
ch = labView->H; ch = labView->H;
if(params.prsharpening.enabled) { if(params.prsharpening.enabled) {
for(int i=0;i<ch;i++)
for(int j=0;j<cw;j++)
labView->L[i][j] = labView->L[i][j] < 0.f ? 0.f : labView->L[i][j];
float **buffer = new float*[ch]; float **buffer = new float*[ch];
for (int i=0; i<ch; i++) for (int i=0; i<ch; i++)
buffer[i] = new float[cw]; buffer[i] = new float[cw];