#define WINDOWS
#ifndef _DEBUG
#define _DEBUG
#endif
void Viewing_BMP(char bmpfilename[]); /*ó¸®µÈ µÎ°³ÀÇ bmp ÆÄÀÏÀ» ¿¾îÁÖ´Â ÇÔ¼ö */
/* RGB Æ÷¸ËÀ» HIS Æ÷¸ËÀ¸·Î º¯È¯ÇÏ´Â ÇÔ¼ö */
void RGB_to_HIS(double r, double g, double b, double &h, double &s, double &i);
/* HIS Æ÷¸ËÀ» RGB Æ÷¸ËÀ¸·Î º¯È¯ÇÏ´Â ÇÔ¼ö */
void HIS_to_RGB(double &r, double &g, double &b,double h, double s, double i);
/* È÷½ºÅä±×·¥ ÆòÈ°È ÇÔ¼ö */
void Equalize(double *buffer, unsigned long pixnum);
/* This program is using Win32 API */
void main(int argc,char **argv)
{
FILE *in,*out; /**/
BITMAPFILEHEADER bmpHeader;/* bitmap File header*/
BITMAPINFOHEADER bmiHeader;/* bitmap info header*/
unsigned long i;
unsigned long height = 0; /* vertical */
unsigned long width = 0; /* Horizontally */
unsigned char *R,*G,*B,*A; // R[] G[] B[] ;
RGBQUAD *Pallette;
unsigned i¡¦(»ý·«)
|