Using Wavelet/Residual with contrast set to != 0 crashes on completely black image, fixes #4399

This commit is contained in:
heckflosse 2018-02-15 13:42:10 +01:00
parent 3b956996d7
commit 20fcffae94

View File

@ -1739,6 +1739,11 @@ void ImProcFunctions::WaveletcontAllL(LabImage * labco, float ** varhue, float *
}
if(max0 <= 0.0) {
// completely black image => nothing to do
return;
}
// printf("MAXmax0=%f MINmin0=%f\n",max0,min0);
//tone mapping