📄 mathematic.h
字号:
#include <math.h>
#define pi 3.141592
#define pi1 pi/4
#define pi3 pi1*3
#define PixThreshold 1000
struct blobs{
int no;
int label;
int CornX0;
int CornY0;
int CornX1;
int CornY1;
int CenterX;
int CenterY;
int area;
};
typedef struct blobs BLOBS;
void swap(double &a,double &b);
void swap(int &a,int &b);
void Sort(double* aa, int num,int fst,int lst);
double NormalizeAngle(double ang);
double DisFabs(double x1,double y1,
double x2,double y2);
double Dis(double x1,double y1,
double x2,double y2);
double NormalizeAngle2(double ang);
double NormalizeDegAngle(double ang);
BOOL RGB2YUV(BYTE R,BYTE G,BYTE B,int& Y,int& U,int& V);
int Discretize(double num,short interval);
double Evaluate(int a,int b);
float Angle2Deg(float ang);
float Deg2Angle(float deg);
void binarysmooth(int StrRow, int StrCol, int EndRow, int EndCol, int COL, BYTE *frm1, int *res);
int LabelObjects (int StrRow, int StrCol, int EndRow, int EndCol,int COL, BYTE *frm1, int *res);
int Histogram (int StrRow, int StrCol, int EndRow, int EndCol, int COL,
long int minbin,long int maxbin,long int *histogram, int *res);
int TestObjects(int StrRow, int StrCol, int EndRow, int EndCol, int COL,
int *res, long int minbin,long int maxbin,
long int *histogram, int obj, BLOBS *cand);
void DrawRectTwoPoint( int X0, int Y0, int X1, int Y1, int COL, int color,int *target);
void DrawLine (int x0, int y0, int x1, int y1, int COL, int color, int *target);
void conv2d (BYTE *image, int *result, int *mask, int row, int col, int dim_mask);
void rotate(int row, int col, int theta, BYTE *in, int *out);
void median3x3(int *image, int *result, int row, int col);
void sort(int *array);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -