From 38f15e18528875a9802ef89b5aa4c0ccfd13194b Mon Sep 17 00:00:00 2001 From: Ingo Weyrich Date: Sun, 29 Aug 2021 19:04:58 +0200 Subject: [PATCH] set border for demosaiced raw files to zero --- rtengine/rawimagesource.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rtengine/rawimagesource.cc b/rtengine/rawimagesource.cc index 6c4bfd8f9..a6fe41227 100644 --- a/rtengine/rawimagesource.cc +++ b/rtengine/rawimagesource.cc @@ -1175,9 +1175,11 @@ int RawImageSource::load (const Glib::ustring &fname, bool firstFrameOnly) d1x = ! ri->get_model().compare("D1X"); - if (ri->getSensorType() == ST_FUJI_XTRANS) { + if (ri->getSensorType() == ST_BAYER) { + border = 4; + } else if (ri->getSensorType() == ST_FUJI_XTRANS) { border = 7; - } else if (ri->getSensorType() == ST_FOVEON) { + } else { border = 0; }