Lines Matching refs:points1
59 int compactPoints(int N, float *points0, float *points1, const uchar *mask);
62 static void compactPoints(GpuMat &points0, GpuMat &points1, const GpuMat &mask) in compactPoints() argument
64 CV_Assert(points0.rows == 1 && points1.rows == 1 && mask.rows == 1); in compactPoints()
65 … CV_Assert(points0.type() == CV_32FC2 && points1.type() == CV_32FC2 && mask.type() == CV_8U); in compactPoints()
66 CV_Assert(points0.cols == mask.cols && points1.cols == mask.cols); in compactPoints()
70 npoints, (float*)points0.data, (float*)points1.data, mask.data); in compactPoints()
73 points1 = points1.colRange(0, remaining); in compactPoints()
121 int npoints, Point2f *points0, Point2f *points1, float *rmse) in estimateGlobMotionLeastSquaresTranslation() argument
126 M(0,2) += points1[i].x - points0[i].x; in estimateGlobMotionLeastSquaresTranslation()
127 M(1,2) += points1[i].y - points0[i].y; in estimateGlobMotionLeastSquaresTranslation()
136 *rmse += sqr(points1[i].x - points0[i].x - M(0,2)) + in estimateGlobMotionLeastSquaresTranslation()
137 sqr(points1[i].y - points0[i].y - M(1,2)); in estimateGlobMotionLeastSquaresTranslation()
146 int npoints, Point2f *points0, Point2f *points1, float *rmse) in estimateGlobMotionLeastSquaresTranslationAndScale() argument
149 Mat_<float> T1 = normalizePoints(npoints, points1); in estimateGlobMotionLeastSquaresTranslationAndScale()
160 p1 = points1[i]; in estimateGlobMotionLeastSquaresTranslationAndScale()
182 int npoints, Point2f *points0, Point2f *points1, float *rmse) in estimateGlobMotionLeastSquaresRotation() argument
189 p1 = points1[i]; in estimateGlobMotionLeastSquaresRotation()
215 p1 = points1[i]; in estimateGlobMotionLeastSquaresRotation()
226 int npoints, Point2f *points0, Point2f *points1, float *rmse) in estimateGlobMotionLeastSquaresRigid() argument
234 mean1 += points1[i]; in estimateGlobMotionLeastSquaresRigid()
246 pt1 = points1[i] - mean1; in estimateGlobMotionLeastSquaresRigid()
269 pt1 = points1[i]; in estimateGlobMotionLeastSquaresRigid()
281 int npoints, Point2f *points0, Point2f *points1, float *rmse) in estimateGlobMotionLeastSquaresSimilarity() argument
284 Mat_<float> T1 = normalizePoints(npoints, points1); in estimateGlobMotionLeastSquaresSimilarity()
295 p1 = points1[i]; in estimateGlobMotionLeastSquaresSimilarity()
320 int npoints, Point2f *points0, Point2f *points1, float *rmse) in estimateGlobMotionLeastSquaresAffine() argument
323 Mat_<float> T1 = normalizePoints(npoints, points1); in estimateGlobMotionLeastSquaresAffine()
334 p1 = points1[i]; in estimateGlobMotionLeastSquaresAffine()
357 InputOutputArray points0, InputOutputArray points1, int model, float *rmse) in estimateGlobalMotionLeastSquares() argument
360 CV_Assert(points0.type() == points1.type()); in estimateGlobalMotionLeastSquares()
362 CV_Assert(points1.getMat().checkVector(2) == npoints); in estimateGlobalMotionLeastSquares()
373 Point2f *points1_ = points1.getMat().ptr<Point2f>(); in estimateGlobalMotionLeastSquares()
380 InputArray points0, InputArray points1, int model, const RansacParams ¶ms, in estimateGlobalMotionRansac() argument
384 CV_Assert(points0.type() == points1.type()); in estimateGlobalMotionRansac()
386 CV_Assert(points1.getMat().checkVector(2) == npoints); in estimateGlobalMotionRansac()
392 const Point2f *points1_ = points1.getMat().ptr<Point2f>(); in estimateGlobalMotionRansac()
489 Mat MotionEstimatorRansacL2::estimate(InputArray points0, InputArray points1, bool *ok) in estimate() argument
491 CV_Assert(points0.type() == points1.type()); in estimate()
493 CV_Assert(points1.getMat().checkVector(2) == npoints); in estimate()
502 points0, points1, motionModel(), ransacParams_, 0, &ninliers); in estimate()
506 M = findHomography(points0, points1, mask, LMEDS); in estimate()
531 Mat MotionEstimatorL1::estimate(InputArray points0, InputArray points1, bool *ok) in estimate() argument
533 CV_Assert(points0.type() == points1.type()); in estimate()
535 CV_Assert(points1.getMat().checkVector(2) == npoints); in estimate()
553 const Point2f *points1_ = points1.getMat().ptr<Point2f>(); in estimate()