@@ -1246,7 +1246,9 @@ BENCHFUN
1246
1246
chresid = sqrt (chresid / (6 * (levwav)));
1247
1247
highresi = chresid + 0 .66f * (sqrt (chmaxresid) - chresid); // evaluate sigma
1248
1248
nresi = chresid;
1249
- printf (" Nresi=%f Highresi=%f lev=%i\n " , (double ) nresi, (double ) highresi, levwav);
1249
+ if (settings->verbose ) {
1250
+ printf (" Nresi=%f Highresi=%f lev=%i\n " , (double ) nresi, (double ) highresi, levwav);
1251
+ }
1250
1252
}
1251
1253
1252
1254
bdecomp->reconstruct (labdn->b [0 ]);
@@ -1773,7 +1775,6 @@ BENCHFUN
1773
1775
1774
1776
// median 3x3 in complement on RGB
1775
1777
if (dnparams.methodmed == " RGB" && dnparams.median ) {
1776
- // printf("RGB den\n");
1777
1778
int wid = dst->getWidth (), hei = dst->getHeight ();
1778
1779
float ** tm;
1779
1780
tm = new float *[hei];
@@ -2381,7 +2382,10 @@ bool ImProcFunctions::WaveletDenoiseAll_BiShrinkL(wavelet_decomposition& Wavelet
2381
2382
bool ImProcFunctions::WaveletDenoiseAll_BiShrinkAB (wavelet_decomposition& WaveletCoeffs_L, wavelet_decomposition& WaveletCoeffs_ab, float *noisevarchrom, float madL[8 ][3 ], float *variC, int local, float noisevar_ab, const bool useNoiseCCurve, bool autoch, bool denoiseMethodRgb, int denoiseNestedLevels)
2382
2383
{
2383
2384
int maxlvl = WaveletCoeffs_L.maxlevel ();
2384
- printf (" Ftblockdn ab bishrink\n " );
2385
+
2386
+ if (settings->verbose ) {
2387
+ printf (" Ftblockdn ab bishrink\n " );
2388
+ }
2385
2389
2386
2390
if (local == 1 ) {
2387
2391
maxlvl = 6 ; // for local denoise
@@ -2463,7 +2467,6 @@ bool ImProcFunctions::WaveletDenoiseAll_BiShrinkAB(wavelet_decomposition& Wavele
2463
2467
float * const * WavCoeffs_ab = WaveletCoeffs_ab.level_coeffs (lvl);
2464
2468
2465
2469
if (lvl == maxlvl - 1 ) {
2466
- // printf("Shrink ab bis\n");
2467
2470
ShrinkAllAB (WaveletCoeffs_L, WaveletCoeffs_ab, buffer, lvl, dir, noisevarchrom, noisevar_ab, useNoiseCCurve, autoch, denoiseMethodRgb, madL[lvl], nullptr , 0 , madab[lvl], true );
2468
2471
} else {
2469
2472
// simple wavelet shrinkage
0 commit comments