-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbinaryutils.h
More file actions
27 lines (26 loc) · 2.03 KB
/
binaryutils.h
File metadata and controls
27 lines (26 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef binaryutils_h
#define binaryutils_h
int morphclose(unsigned char *binary, int width, int height, unsigned char *sel, int swidth, int sheight);
int morphopen(unsigned char *binary, int width, int height, unsigned char *sel, int swidth, int sheight);
int dilate(unsigned char *binary, int width, int height, unsigned char *sel, int swidth, int sheight);
int erode(unsigned char *binary, int width, int height, unsigned char *sel, int swidth, int sheight);
int *labelconnected(unsigned char *binary, int width, int height, int connex, int *Nout);
int eulernumber(unsigned char *binary, int width, int height);
int getbiggestobject(unsigned char *binary, int width, int height, int connex);
int branchpoints(unsigned char *binary, int width, int height, int **xout, int **yout);
int lineends(unsigned char *binary, int width, int height, int **xout, int **yout);
int ends(unsigned char *binary, int width, int height, int **xout, int **yout);
unsigned char *perimeter(unsigned char *binary, int width, int height);
void invertbinary(unsigned char *binary, int width, int height);
unsigned char *copybinary(unsigned char *binary, int width, int height);
unsigned char *subbinary(unsigned char *binary, int width, int height, int x, int y, int swidth, int sheight);
unsigned char *binary_addborder(unsigned char *binary, int width, int height, int border, unsigned char fill);
unsigned char *binary_addborderwrapped(unsigned char *binary, int width, int height, int border);
unsigned char *binary_removeborder(unsigned char *binary, int width, int height, int border);
void boundingbox(unsigned char *binary, int width, int height, int *x, int *y, int *bbwidth, int *bbheight);
int simplearea(unsigned char *binary, int width, int height);
double complexarea(unsigned char *binary, int width, int height);
void *compressbinary(unsigned char *binary, int width, int height, int *clen);
unsigned char *decompressbinary(unsigned char *comp, int *width, int *height);
int getcontours(unsigned char *binary, int width, int height, double ***x, double ***y, int **Nret);
#endif