diff --git a/rtengine/FTblockDN.cc b/rtengine/FTblockDN.cc index 84544bb95..96222d134 100644 --- a/rtengine/FTblockDN.cc +++ b/rtengine/FTblockDN.cc @@ -138,7 +138,7 @@ namespace rtengine { const float gain = pow (2.0, dnparams.expcomp); - float noisevar_Ldetail = SQR((100-dnparams.Ldetail) * TS * 100.0f); + float noisevar_Ldetail = SQR((SQR(100-dnparams.Ldetail) + 50*(100-dnparams.Ldetail)) * TS * 0.5f); array2D tilemask_in(TS,TS); @@ -215,7 +215,7 @@ namespace rtengine { //pixel weight array2D totwt(width,height,ARRAY2D_CLEAR_DATA);//weight for combining DCT blocks - //fill tile from image + //fill tile from image; convert RGB to "luma/chroma" for (int i=tiletop, i1=0; iget_ciffLen(); idata = new ImageData (fname, &rml); - green(W,H);// = allocArray(W,H); - red(W,H);// = allocArray(W,H); - blue(W,H);// = allocArray(W,H); + green(W,H); + red(W,H); + blue(W,H); //hpmap = allocArray(W, H); if (plistener) {