Using Wavelet/Residual with contrast set to != 0 crashes on completely black image, fixes #4399
This commit is contained in:
parent
3b956996d7
commit
20fcffae94
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user