#define plus(c) (c+1) #define moins(c) (c) Int main () { Int arrayCount[256];//number of ascii code Int range[plus(256)];//table of all ascii counted Int c; For (c=0;c<256;c++) { ArrayCount[c]=0; } While (c=fgetc(file))//file is opened with image grey scale { ArrayCount[c]++; } Moy[0]=0; // Moy[1]=tab[257]; For(c=0;c<=257;c++) { Range[plus(c)]=tab[c]; } For(c=1;c<=257;c++) { Range[c]=range[c]+range[c-1];
#define ArraySize 256 int range[ArraySize]; memmove( &range[2], &range[1], sizeof(int)*( ArraySize-2 ) ); range[1] = newValue;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)