From 7a69ff84a476539b533254d3d69b1754cb49f8d0 Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Mon, 13 Mar 2017 15:12:00 +0100 Subject: [PATCH] use 1-pass method for X-trans demosaic in the fast pipeline As suggested by @heckflosse --- rtengine/simpleprocess.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rtengine/simpleprocess.cc b/rtengine/simpleprocess.cc index 50dbedbd0..fd06df66b 100644 --- a/rtengine/simpleprocess.cc +++ b/rtengine/simpleprocess.cc @@ -1435,6 +1435,14 @@ private: ADJUST_RADIUS_(defringe.radius, scale_factor); ADJUST_RADIUS_(sh.radius, scale_factor); + if (params.raw.xtranssensor.method == + procparams::RAWParams::XTransSensor::methodstring[ + procparams::RAWParams::XTransSensor::threePass]) { + params.raw.xtranssensor.method = + procparams::RAWParams::XTransSensor::methodstring[ + procparams::RAWParams::XTransSensor::onePass]; + } + #undef ADJUST_RADIUS_ }