148 for (
int i = 0; i <
mHeight; i++ )
151 for (
int j = 0; j <
mWidth; j++ )
164 for(
int y = 0; y <
mHeight; y++ )
177 for( i = 0; i < height-8; i++ )
178 for( j = 0; j < width-8; j++ )
181 for( x = 0; x < 9; x++ )
182 for( y = 0; y < 9; y++)
183 tmp +=
CONTRAST[x][y] * img[i+x][j+y];
195 strcpy( tmpName, file );
196 strcat( tmpName,
"-contrast.pgm" );
void ApplyFilter(float **img, int height, int width)
void WriteScaled(char *filename, float **output, int height, int width)