본문/내용
#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 int tmp1; /* for 16bit pixel */
unsigned int tmp2; /* for 16bit pixel */
#ifdef _DEBUG
argc =3;
argv[1]=(char*)malloc(sizeof(`c:\\\\sample.bmp`));
strcpy(argv[1],`c:\\\\sample…
…