Home | History | Annotate | Download | only in src

Lines Matching full:npoints

268                                        int    npoints,
283 tempMask = Mat(npoints, 1, CV_8U);
300 rhoEnsureCapacity(p, npoints, beta);
317 (unsigned) npoints,
332 for(int k=0;k<npoints;k++){
351 int npoints = -1;
357 npoints = p.checkVector(2, -1, false);
358 if( npoints < 0 )
360 npoints = p.checkVector(3, -1, false);
361 if( npoints < 0 )
363 if( npoints == 0 )
367 p.reshape(2, npoints).convertTo(m, CV_32F);
377 if( method == 0 || npoints == 4 )
379 tempMask = Mat::ones(npoints, 1, CV_8U);
387 result = createAndRunRHORegistrator(confidence, maxIters, ransacReprojThreshold, npoints, src, dst, H, tempMask);
391 if( result && npoints > 4 && method != RHO)
393 compressElems( src.ptr<Point2f>(), tempMask.ptr<uchar>(), 1, npoints );
394 npoints = compressElems( dst.ptr<Point2f>(), tempMask.ptr<uchar>(), 1, npoints );
395 if( npoints > 0 )
397 Mat src1 = src.rowRange(0, npoints);
398 Mat dst1 = dst.rowRange(0, npoints);
732 int npoints = -1;
738 npoints = p.checkVector(2, -1, false);
739 if( npoints < 0 )
741 npoints = p.checkVector(3, -1, false);
742 if( npoints < 0 )
744 if( npoints == 0 )
748 p.reshape(2, npoints).convertTo(m, CV_32F);
753 if( npoints < 7 )
759 if( npoints == 7 || method == FM_8POINT )
764 _mask.create(npoints, 1, CV_8U, -1, true);
766 CV_Assert( (mask.cols == 1 || mask.rows == 1) && (int)mask.total() == npoints );
777 if( (method & ~3) == FM_RANSAC && npoints >= 15 )
806 int npoints = points.checkVector(2);
807 if( npoints < 0 )
809 npoints = points.checkVector(3);
810 if( npoints < 0 )
825 _lines.create(npoints, 1, ltype);
830 _lines.create(npoints, 1, ltype);
840 for( int i = 0; i < npoints; i++ )
856 for( int i = 0; i < npoints; i++ )
875 int i, npoints = src.checkVector(3), depth = src.depth(), cn = 3;
876 if( npoints < 0 )
878 npoints = src.checkVector(4);
879 CV_Assert(npoints >= 0);
882 CV_Assert( npoints >= 0 && (depth == CV_32S || depth == CV_32F || depth == CV_64F));
885 _dst.create(npoints, 1, dtype);
890 _dst.create(npoints, 1, dtype);
901 for( i = 0; i < npoints; i++ )
911 for( i = 0; i < npoints; i++ )
924 for( i = 0; i < npoints; i++ )
934 for( i = 0; i < npoints; i++ )
947 for( i = 0; i < npoints; i++ )
957 for( i = 0; i < npoints; i++ )
974 int i, npoints = src.checkVector(2), depth = src.depth(), cn = 2;
975 if( npoints < 0 )
977 npoints = src.checkVector(3);
978 CV_Assert(npoints >= 0);
981 CV_Assert( npoints >= 0 && (depth == CV_32S || depth == CV_32F || depth == CV_64F));
984 npoints, 1, dtype);
989 _dst.create(npoints, 1, dtype);
1000 for( i = 0; i < npoints; i++ )
1007 for( i = 0; i < npoints; i++ )
1017 for( i = 0; i < npoints; i++ )
1024 for( i = 0; i < npoints; i++ )
1034 for( i = 0; i < npoints; i++ )
1041 for( i = 0; i < npoints; i++ )