Black output image when using ciecam02 and tone-mapping, Issue 2404

This commit is contained in:
Ingo
2014-06-03 20:12:37 +02:00
parent e02fcf497b
commit 7e809dfb08

View File

@@ -1937,7 +1937,7 @@ printf("BADPIX");
#endif
for (int i=0; i<height; i++) // update CieImages with new values after sharpening, defringe, contrast by detail level
for (int j=0; j<width; j++) {
float interm=ncie->sh_p[i][j]/(32768.f);
float interm=fabsf(ncie->sh_p[i][j]/(32768.f));
ncie->J_p[i][j]=100.0f* SQR(interm);
ncie->Q_p[i][j]=interm*Qredi;
ncie->M_p[i][j]=ncie->C_p[i][j]*co_e;