www.pudn.com > GaitRsystem.rar > Contour.h
#include#include #include #include //轮廓修正 BOOL BodyModify(unsigned char *buffer, int width, int height); //边界展开 BOOL TraceCon(unsigned char *buffer, int width, int height ,double data [],int length,int m); //轮廓提取 BOOL Contour(unsigned char *buffer, int width, int height); BOOL BodyModify(unsigned char *buffer, int width, int height) { int i=0,j=0; PIXEL top, bottom , left, right; BOOL IsTop=FALSE,IsBottom=FALSE,IsLeft=FALSE,IsRight=FALSE; for(i=0;i =100&&index<150) { for(i=0;i =150&&index<200) { for(i=0;i =200&&index<250) { int n=0; for(i=0;i =25&&index<300) { int n=25; for(i=0;i =300&&index<350) { int n=0; for(i=0;i =350&&index<400) { int n=25; for(i=0;i =400&&index<450) { int n=0; for(i=0;i =450&&index<500) { int n=25; for(i=0;i