Dual demosaic: added xtrans 2-pass (combination of xtrans 1-pass and xtrans fast)

This commit is contained in:
heckflosse
2018-06-24 19:32:12 +02:00
parent 7397f8494f
commit 60f94e29a7
6 changed files with 17 additions and 5 deletions

View File

@@ -51,7 +51,11 @@ void RawImageSource::dual_demosaic_RT(bool isBayer, const RAWParams &raw, int wi
rcd_demosaic();
}
} else {
xtrans_interpolate (3, true);
if (raw.xtranssensor.method == RAWParams::XTransSensor::getMethodString(RAWParams::XTransSensor::Method::FOUR_PASS) ) {
xtrans_interpolate (3, true);
} else {
xtrans_interpolate (1, false);
}
}
return;
@@ -73,7 +77,11 @@ void RawImageSource::dual_demosaic_RT(bool isBayer, const RAWParams &raw, int wi
rcd_demosaic();
}
} else {
xtrans_interpolate (3, true);
if (raw.xtranssensor.method == RAWParams::XTransSensor::getMethodString(RAWParams::XTransSensor::Method::FOUR_PASS) ) {
xtrans_interpolate (3, true);
} else {
xtrans_interpolate (1, false);
}
fast_xtrans_interpolate(rawData, redTmp, greenTmp, blueTmp);
}