-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsegment.h
More file actions
executable file
·20 lines (18 loc) · 892 Bytes
/
segment.h
File metadata and controls
executable file
·20 lines (18 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//边缘检测
void sobel(unsigned char *imgBuf, int width, int height, int biBitCount);
void robot(unsigned char *imgBuf, int width, int height, int biBitCount);
void prewitt(unsigned char *imgBuf, int width, int height, int biBitCount);
void laplacian(unsigned char *imgBuf, int width, int height, int biBitCount);
//二值分割
void ErZhiSegment(unsigned char *imgBuf, int width, int height, int thresh);
//大津阈值分割
void autoThreshSegment(unsigned char *imgBuf, int width, int height);
//均值平滑
void meanFilter(unsigned char *imgBuf, int width, int height, int biBitCount,
int *mask, int masksize);
//中值平滑
void midFilter(unsigned char *imgBuf, int width, int height, int biBitCount,
int *mask, int masksize);
//模板
void Filter(unsigned char *imgBuf, int width, int height, int biBitCount,
double *mask, int masksize);