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 //end of linear equation solver
} }
namespace rtengine {
extern const Settings* settings;
}
using namespace std; using namespace std;
using namespace rtengine; 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]); blockvar[dir][c] = blocksqave[dir][c] / blockdenom[dir][c] - SQR(blockave[dir][c] / blockdenom[dir][c]);
} else { } else {
processpasstwo = false; processpasstwo = false;
if (settings->verbose) {
std::cout << "blockdenom vanishes" << std::endl; std::cout << "blockdenom vanishes" << std::endl;
}
break; break;
} }
} }
@@ -801,7 +807,9 @@ float* RawImageSource::CA_correct_RT(
numpar = 4; numpar = 4;
if (numblox[1] < 10) { if (numblox[1] < 10) {
if (settings->verbose) {
std::cout << "numblox = " << numblox[1] << std::endl; std::cout << "numblox = " << numblox[1] << std::endl;
}
processpasstwo = false; processpasstwo = false;
} }
} }