www.pudn.com > GaitRsystem.rar > mophologic.h
#include#include #include //开运算 BOOL Open(unsigned char *buffer, int width, int height); //闭运算 BOOL Close(unsigned char *buffer, int width, int height); BOOL Open(unsigned char *buffer, int width, int height) { int i=0,j=0; unsigned char pixel; int n=0; unsigned char *tmpbuffer; tmpbuffer=(unsigned char *)malloc(width*height); for(j=1;j