Fixed wrong replacement of rgb_cam matrix

This commit is contained in:
heckflosse
2018-03-20 23:06:22 +01:00
parent 59ebf99f63
commit 2591364b54

View File

@@ -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);