#include "trafo.h" #include "types.h" #include "lena128color.h" #define LENA #ifdef LENA #define N 128 #define M 128 pixelRGB* RGBimage; #else #define N 16 #define M 16 pixelRGB RGBimage[N*M]; #endif unsigned char GrayImage[N*M]; unsigned char BinaryImage[N*M]; short int histogram[256]; void initRGB(int nrows, int ncols) { #ifndef LENA int i,j; for (i=0;i