Suppress debug output in CA correction

Debug output still visible in verbose mode.

Closes #5437
This commit is contained in:
Morgan Hardwood
2019-09-04 22:12:53 +02:00
parent 20ca4946b5
commit d0c6440af9

View File

@@ -106,6 +106,10 @@ bool LinEqSolve(int nDim, double* pfMatr, double* pfVect, double* pfSolution)
//end of linear equation solver
}
namespace rtengine {
extern const Settings* settings;
}
using namespace std;
using namespace rtengine;
@@ -701,7 +705,9 @@ float* RawImageSource::CA_correct_RT(
blockvar[dir][c] = blocksqave[dir][c] / blockdenom[dir][c] - SQR(blockave[dir][c] / blockdenom[dir][c]);
} else {
processpasstwo = false;
std::cout << "blockdenom vanishes" << std::endl;
if (settings->verbose) {
std::cout << "blockdenom vanishes" << std::endl;
}
break;
}
}
@@ -801,7 +807,9 @@ float* RawImageSource::CA_correct_RT(
numpar = 4;
if (numblox[1] < 10) {
std::cout << "numblox = " << numblox[1] << std::endl;
if (settings->verbose) {
std::cout << "numblox = " << numblox[1] << std::endl;
}
processpasstwo = false;
}
}