#ifndef BMPLIB_H #define BMPLIB_H const int SIZE = 256; const int RGB = 3; // read full-color image from the file specified by filename, into inputImage int readRGBBMP(const char* filename, unsigned char inputImage[][SIZE][RGB]); // write full-color image to the file specified by filename, from outputImage int writeRGBBMP(const char* filename, unsigned char outputImage[][SIZE][RGB]); // display full-color image with eog, pause 0.2 seconds. (uses a temp file) void showRGBBMP(unsigned char inputImage[][SIZE][RGB]); // read grayscale image from the file specified by filename, into inputImage int readGSBMP(const char* filename, unsigned char image[][SIZE]); // write grayscale image to the file specified by filename, from outputImage int writeGSBMP(const char* filename, unsigned char outputImage[][SIZE]); // Display grayscale image with eog, pause 0.2 seconds. (uses a temp file) void showGSBMP(unsigned char inputImage[][SIZE]); #endif