Binary Image Library
C:/Users/Malcolm/Documents/temp/binaryimagelibrary/binaryutils.h
1 #ifndef binaryutils_h
2 #define binaryutils_h
3 int morphclose(unsigned char *binary, int width, int height, unsigned char *sel, int swidth, int sheight);
4 int morphopen(unsigned char *binary, int width, int height, unsigned char *sel, int swidth, int sheight);
5 int dilate(unsigned char *binary, int width, int height, unsigned char *sel, int swidth, int sheight);
6 int erode(unsigned char *binary, int width, int height, unsigned char *sel, int swidth, int sheight);
7 int *labelconnected(unsigned char *binary, int width, int height, int connex, int *Nout);
8 int eulernumber(unsigned char *binary, int width, int height);
9 int getbiggestobject(unsigned char *binary, int width, int height, int connex);
10 int branchpoints(unsigned char *binary, int width, int height, int **xout, int **yout);
11 int lineends(unsigned char *binary, int width, int height, int **xout, int **yout);
12 int ends(unsigned char *binary, int width, int height, int **xout, int **yout);
13 unsigned char *perimeter(unsigned char *binary, int width, int height);
14 void invertbinary(unsigned char *binary, int width, int height);
15 unsigned char *copybinary(unsigned char *binary, int width, int height);
16 unsigned char *subbinary(unsigned char *binary, int width, int height, int x, int y, int swidth, int sheight);
17 unsigned char *binary_addborder(unsigned char *binary, int width, int height, int border, unsigned char fill);
18 unsigned char *binary_addborderwrapped(unsigned char *binary, int width, int height, int border);
19 unsigned char *binary_removeborder(unsigned char *binary, int width, int height, int border);
20 void boundingbox(unsigned char *binary, int width, int height, int *x, int *y, int *bbwidth, int *bbheight);
21 int simplearea(unsigned char *binary, int width, int height);
22 double complexarea(unsigned char *binary, int width, int height);
23 void *compressbinary(unsigned char *binary, int width, int height, int *clen);
24 unsigned char *decompressbinary(unsigned char *comp, int *width, int *height);
25 int getcontours(unsigned char *binary, int width, int height, double ***x, double ***y, int **Nret);
26 
27 #endif
int simplearea(unsigned char *binary, int width, int height)
Definition: binaryutils.c:1006
void invertbinary(unsigned char *binary, int width, int height)
Definition: binaryutils.c:673
unsigned char * perimeter(unsigned char *binary, int width, int height)
Definition: binaryutils.c:635
unsigned char * binary_addborder(unsigned char *binary, int width, int height, int border, unsigned char fill)
Definition: binaryutils.c:708
unsigned char * subbinary(unsigned char *binary, int width, int height, int x, int y, int swidth, int sheight)
Definition: binaryutils.c:909
double complexarea(unsigned char *binary, int width, int height)
Definition: binaryutils.c:1025
int dilate(unsigned char *binary, int width, int height, unsigned char *sel, int swidth, int sheight)
Definition: binaryutils.c:101
void boundingbox(unsigned char *binary, int width, int height, int *x, int *y, int *bbwidth, int *bbheight)
Definition: binaryutils.c:952
int branchpoints(unsigned char *binary, int width, int height, int **xout, int **yout)
Definition: binaryutils.c:448
void * compressbinary(unsigned char *binary, int width, int height, int *clen)
Definition: binaryutils.c:1065
unsigned char * decompressbinary(unsigned char *comp, int *width, int *height)
Definition: binaryutils.c:1152
int morphclose(unsigned char *binary, int width, int height, unsigned char *sel, int swidth, int sheight)
Definition: binaryutils.c:51
int eulernumber(unsigned char *binary, int width, int height)
Definition: binaryutils.c:341
int erode(unsigned char *binary, int width, int height, unsigned char *sel, int swidth, int sheight)
Definition: binaryutils.c:154
int ends(unsigned char *binary, int width, int height, int **xout, int **yout)
Definition: binaryutils.c:582
unsigned char * copybinary(unsigned char *binary, int width, int height)
Definition: binaryutils.c:689
unsigned char * binary_removeborder(unsigned char *binary, int width, int height, int border)
Definition: binaryutils.c:870
int lineends(unsigned char *binary, int width, int height, int **xout, int **yout)
Definition: binaryutils.c:512
int * labelconnected(unsigned char *binary, int width, int height, int connex, int *Nout)
Definition: binaryutils.c:203
int morphopen(unsigned char *binary, int width, int height, unsigned char *sel, int swidth, int sheight)
Definition: binaryutils.c:76
int getcontours(unsigned char *binary, int width, int height, double ***x, double ***y, int **Nret)
Definition: binaryutils.c:1277
unsigned char * binary_addborderwrapped(unsigned char *binary, int width, int height, int border)
Definition: binaryutils.c:761
int getbiggestobject(unsigned char *binary, int width, int height, int connex)
Definition: binaryutils.c:399