camconst: use true/false instead of 0/1 for "global_green_equilibration"

This commit is contained in:
Alberto Griggio
2018-06-08 13:55:15 +02:00
parent 0e22f0b610
commit 4361e12062
3 changed files with 45 additions and 42 deletions

View File

@@ -1956,6 +1956,9 @@ void RawImageSource::preprocess (const RAWParams &raw, const LensProfParams &le
};
if ( ri->getSensorType() == ST_BAYER && (raw.bayersensor.greenthresh || (globalGreenEq() && raw.bayersensor.method != RAWParams::BayerSensor::getMethodString( RAWParams::BayerSensor::Method::VNG4))) ) {
if (settings->verbose) {
printf("Performing global green equilibration...\n");
}
// global correction
if(numFrames == 4) {
for(int i = 0; i < 4; ++i) {