forked from MahmoudMNael/Image_Filtering_Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bmplib.h
28 lines (17 loc) · 955 Bytes
/
bmplib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#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