From 2591364b54bb93d860acb7791d23a4b2784edf8e Mon Sep 17 00:00:00 2001 From: heckflosse Date: Tue, 20 Mar 2018 23:06:22 +0100 Subject: [PATCH] Fixed wrong replacement of rgb_cam matrix --- rtengine/rawimage.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtengine/rawimage.cc b/rtengine/rawimage.cc index ebfe45f44..b2f77026d 100644 --- a/rtengine/rawimage.cc +++ b/rtengine/rawimage.cc @@ -332,7 +332,7 @@ skip_block: pre_mul_[3] = pre_mul_[1] = (pre_mul_[3] + pre_mul_[1]) / 2; } - if (colors == 1) + if (colors == 1) { // there are monochrome cameras with wrong matrix. We just replace with this one. rgb_cam[0][0] = 1; rgb_cam[1][0] = 0; rgb_cam[2][0] = 0; rgb_cam[0][1] = 0; rgb_cam[1][1] = 1; rgb_cam[2][1] = 0; @@ -341,6 +341,7 @@ skip_block: for (c = 1; c < 4; c++) { cblack_[c] = cblack_[0]; } + } bool multiple_whites = false; int largest_white = this->get_white(0);