2019独角兽企业重金招聘Python工程师标准>>>
double CalcSimilarity(IplImage* S,IplImage* T)
{ double r = 0.f; int width = T->width; int height = T->height;
uchar* ptrS = NULL;
uchar* ptrT = NULL;
float a = 0,b = 0,c = 0;
for(int i=0;iimageData+i*S->widthStep;ptrT = (uchar*)T->imageData+i*T->widthStep;for(int j=0;j
}