Fixed another accidently committed change

This commit is contained in:
heckflosse 2018-06-07 22:11:37 +02:00
parent d624577ee5
commit 6cba9ab7c4

View File

@ -46,14 +46,12 @@ void RawImageSource::green_equilibrate_global(array2D<float> &rawData)
for (int i = border; i < H - border; i++) {
double avgg = 0.;
int ng = 0;
for (int j = border + ((FC(i, border) & 1) ^ 1); j < W - border; j += 2) {
// if(rawData[i][j] > 0.f) {
avgg += rawData[i][j];
ng++;
// }
avgg += rawData[i][j];
}
int ng = (W - 2 * border + (FC(i, border) & 1)) / 2;
if (i & 1) {
avgg2 += avgg;
ng2 += ng;