raw ca correction/avoid colour shift: bugfix, #4777
This commit is contained in:
@@ -1270,9 +1270,9 @@ float* RawImageSource::CA_correct_RT(
|
|||||||
#pragma omp single
|
#pragma omp single
|
||||||
{
|
{
|
||||||
if (H % 2) {
|
if (H % 2) {
|
||||||
int firstCol = FC(H - 1, 0) & 1;
|
int firstCol = FC(0, 0) & 1;
|
||||||
int colour = FC(H - 1, firstCol);
|
int colour = FC(0, firstCol);
|
||||||
array2D<float>* nonGreen = colour == 0 ? &redFactor : &blueFactor;
|
array2D<float>* nonGreen = colour == 0 ? &blueFactor : &redFactor;
|
||||||
for (int j = 0; j < (W + 1) / 2; ++j) {
|
for (int j = 0; j < (W + 1) / 2; ++j) {
|
||||||
(*nonGreen)[(H + 1) / 2 - 1][j] = (*nonGreen)[(H + 1) / 2 - 2][j];
|
(*nonGreen)[(H + 1) / 2 - 1][j] = (*nonGreen)[(H + 1) / 2 - 2][j];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user