From 917cc49278a32db9d0cbdd76b0d0e622dee8eded Mon Sep 17 00:00:00 2001 From: heckflosse Date: Thu, 28 Feb 2019 22:39:40 +0100 Subject: [PATCH] xtrans: reduce border artifacts, #5198 --- rtengine/xtrans_demosaic.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rtengine/xtrans_demosaic.cc b/rtengine/xtrans_demosaic.cc index 26cd9071b..c37be314f 100644 --- a/rtengine/xtrans_demosaic.cc +++ b/rtengine/xtrans_demosaic.cc @@ -197,12 +197,6 @@ void RawImageSource::xtrans_interpolate (const int passes, const bool useCieLab) const int height = H, width = W; -// if (settings->verbose) { -// printf("%d-pass X-Trans interpolation using %s conversion...\n", passes, useCieLab ? "lab" : "yuv"); -// } - - xtransborder_interpolate(6, red, green, blue); - float xyz_cam[3][3]; { float rgb_cam[3][4]; @@ -956,6 +950,7 @@ void RawImageSource::xtrans_interpolate (const int passes, const bool useCieLab) free(buffer); } + xtransborder_interpolate(8, red, green, blue); } #undef CLIP void RawImageSource::fast_xtrans_interpolate (const array2D &rawData, array2D &red, array2D &green, array2D &blue)