📄 hsi.h
字号:
/**$6
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
#if !defined(COLORCONV_H_)
#define COLORCONV_H_
struct RGB
{
unsigned char b;
unsigned char g;
unsigned char r;
};
struct HSI
{
double Hue;
double Saturation;
double Intensity;
};
struct LUV
{
double l;
double u;
double v;
};
struct LINE
{
int StartX;
int EndX;
};
/*
struct FLAGS
{
char visited:1;
char marked:1;
char edged:1;
char center:1;
char color:1;
char dummy:3;
};
*/
struct WINDOW
{
int LeftX;
int RightX;
int BottomY;
int TopY;
int MinAngle;
int MaxAngle;
};
typedef struct{//定义一个转换域结构
int Value;
int Dist;
int AngleNumber;
}MaxValue;
#define PI 3.14159
int RgbToHsi(RGB *RgbPtr, HSI *HsiPtr);
int RgbToLuv(RGB *RgbPtr, LUV *LuvPtr);
//HSI RgbToHsi(RGB RgbPtr);
BOOL WINAPI HoughDIB(LPBYTE lpDIBBits, LONG lWidth, LONG lHeight);
void TableSmooth(int *pg,int m,int n);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -