Skip to content

Commit

Permalink
camlibs/mars: Fix copy-paste mistake in mars_white_balance() (#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
cher-nov authored Jan 24, 2024
1 parent 915086f commit 108af91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions camlibs/mars/mars.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,11 @@ mars_white_balance (unsigned char *data, unsigned int size, float saturation,

histogram(data, size, htable_r, htable_g, htable_b);
x = 1;
for (r = 48; r < 208; r++)
for (d = 48; d < 208; d++)
{
x += htable_r[r];
x += htable_g[r];
x += htable_r[r];
x += htable_r[d];
x += htable_g[d];
x += htable_b[d];
}
new_gamma = sqrt((double) (x * 1.5) / (double) (size * 3));
x=0;
Expand Down

0 comments on commit 108af91

Please sign in to comment.