Suppress debug output in CA correction
Debug output still visible in verbose mode. Closes #5437
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user