contrast-retinex: Delete redundant assignment and move variable to local block

This commit is contained in:
Mukund Sivaraman 2011-10-06 19:39:59 +05:30
parent db40cca290
commit 030695b8d0
1 changed files with 2 additions and 2 deletions

View File

@ -613,7 +613,6 @@ MSRCR (guchar *src, gint width, gint height, gint bytes, gboolean preview_mode)
gint scale,row,col;
gint i,j;
gint size;
gint pos;
gint channel;
guchar *psrc = NULL; /* backup pointer for src buffer */
gfloat *dst = NULL; /* float buffer for algorithm */
@ -683,9 +682,10 @@ MSRCR (guchar *src, gint width, gint height, gint bytes, gboolean preview_mode)
The recursive filtering algorithm needs different coefficients according
to the selected scale (~ = standard deviation of Gaussian).
*/
pos = 0;
for (channel = 0; channel < 3; channel++)
{
gint pos;
for (i = 0, pos = channel; i < channelsize ; i++, pos += bytes)
{
/* 0-255 => 1-256 */