Fixed wrong replacement of rgb_cam matrix
This commit is contained in:
@@ -332,7 +332,7 @@ skip_block:
|
|||||||
pre_mul_[3] = pre_mul_[1] = (pre_mul_[3] + pre_mul_[1]) / 2;
|
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.
|
// 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][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;
|
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++) {
|
for (c = 1; c < 4; c++) {
|
||||||
cblack_[c] = cblack_[0];
|
cblack_[c] = cblack_[0];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool multiple_whites = false;
|
bool multiple_whites = false;
|
||||||
int largest_white = this->get_white(0);
|
int largest_white = this->get_white(0);
|
||||||
|
Reference in New Issue
Block a user