Lines Matching refs:cm
456 CvPoint2D64f cM={0,0}, cm={0,0}, sM={0,0}, sm={0,0};
460 cm.x += m[i].x; cm.y += m[i].y;
461 cM.x += M[i].x; cM.y += M[i].y;
464 cm.x /= count; cm.y /= count;
465 cM.x /= count; cM.y /= count;
469 sm.x += fabs(m[i].x - cm.x);
470 sm.y += fabs(m[i].y - cm.y);
471 sM.x += fabs(M[i].x - cM.x);
472 sM.y += fabs(M[i].y - cM.y);
478 double invHnorm[9] = { 1./sm.x, 0, cm.x, 0, 1./sm.y, cm.y, 0, 0, 1 };
479 double Hnorm2[9] = { sM.x, 0, -cM.x*sM.x, 0, sM.y, -cM.y*sM.y, 0, 0, 1 };
486 double x = (m[i].x - cm.x)*sm.x, y = (m[i].y - cm.y)*sm.y;
487 double X = (M[i].x - cM.x)*sM.x, Y = (M[i].y - cM.y)*sM.y;