Fixed bug with raw ca-correction when pixelshift image was opened with amaze demosaic and then method was switched to pixelshift

This commit is contained in:
heckflosse
2017-03-16 23:54:59 +01:00
parent 44a64f56b3
commit 3db29b2060

View File

@@ -1978,7 +1978,7 @@ void RawImageSource::preprocess (const RAWParams &raw, const LensProfParams &le
plistener->setProgressStr ("CA Auto Correction...");
plistener->setProgress (0.0);
}
if(numFrames == 4 && raw.bayersensor.method == RAWParams::BayerSensor::methodstring[RAWParams::BayerSensor::pixelshift]) {
if(numFrames == 4) {
for(int i=0; i<4; ++i) {
CA_correct_RT(raw.ca_autocorrect, raw.cared, raw.cablue, 10.0 - raw.caautostrength, *rawDataFrames[i]);
}