Skip to content

Commit 1e7cedf

Browse files
committed
Ftblockdn - remove unwanted messages in console
1 parent 5acf1c0 commit 1e7cedf

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

rtengine/FTblockDN.cc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,9 @@ BENCHFUN
12461246
chresid = sqrt(chresid / (6 * (levwav)));
12471247
highresi = chresid + 0.66f * (sqrt(chmaxresid) - chresid); //evaluate sigma
12481248
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+
}
12501252
}
12511253

12521254
bdecomp->reconstruct(labdn->b[0]);
@@ -1773,7 +1775,6 @@ BENCHFUN
17731775

17741776
//median 3x3 in complement on RGB
17751777
if (dnparams.methodmed == "RGB" && dnparams.median) {
1776-
//printf("RGB den\n");
17771778
int wid = dst->getWidth(), hei = dst->getHeight();
17781779
float** tm;
17791780
tm = new float*[hei];
@@ -2381,7 +2382,10 @@ bool ImProcFunctions::WaveletDenoiseAll_BiShrinkL(wavelet_decomposition& Wavelet
23812382
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)
23822383
{
23832384
int maxlvl = WaveletCoeffs_L.maxlevel();
2384-
printf("Ftblockdn ab bishrink\n");
2385+
2386+
if (settings->verbose) {
2387+
printf("Ftblockdn ab bishrink\n");
2388+
}
23852389

23862390
if (local == 1) {
23872391
maxlvl = 6; //for local denoise
@@ -2463,7 +2467,6 @@ bool ImProcFunctions::WaveletDenoiseAll_BiShrinkAB(wavelet_decomposition& Wavele
24632467
float* const* WavCoeffs_ab = WaveletCoeffs_ab.level_coeffs(lvl);
24642468

24652469
if (lvl == maxlvl - 1) {
2466-
//printf("Shrink ab bis\n");
24672470
ShrinkAllAB(WaveletCoeffs_L, WaveletCoeffs_ab, buffer, lvl, dir, noisevarchrom, noisevar_ab, useNoiseCCurve, autoch, denoiseMethodRgb, madL[lvl], nullptr, 0, madab[lvl], true);
24682471
} else {
24692472
//simple wavelet shrinkage

0 commit comments

Comments
 (0)