Lines Matching refs:total

132     int i, total = points.checkVector(2), depth = points.depth(), nout = 0;  in convexHull()  local
134 CV_Assert(total >= 0 && (depth == CV_32F || depth == CV_32S)); in convexHull()
136 if( total == 0 ) in convexHull()
145 AutoBuffer<Point*> _pointer(total); in convexHull()
146 AutoBuffer<int> _stack(total + 2), _hullbuf(total); in convexHull()
155 for( i = 0; i < total; i++ ) in convexHull()
161 std::sort(pointer, pointer + total, CHullCmpPoints<int>()); in convexHull()
162 for( i = 1; i < total; i++ ) in convexHull()
173 std::sort(pointerf, pointerf + total, CHullCmpPoints<float>()); in convexHull()
174 for( i = 1; i < total; i++ ) in convexHull()
184 if( pointer[0]->x == pointer[total-1]->x && in convexHull()
185 pointer[0]->y == pointer[total-1]->y ) in convexHull()
198 Sklansky_( pointer, total-1, maxy_ind, tr_stack, -1, -1) : in convexHull()
199 Sklansky_( pointerf, total-1, maxy_ind, tr_stack, -1, -1); in convexHull()
221 Sklansky_( pointer, total-1, miny_ind, br_stack, 1, 1) : in convexHull()
222 Sklansky_( pointerf, total-1, miny_ind, br_stack, 1, 1); in convexHull()
381 int total = contour.checkVector(2), depth = contour.depth(); in isContourConvex() local
382 CV_Assert(total >= 0 && (depth == CV_32F || depth == CV_32S)); in isContourConvex()
384 if( total == 0 ) in isContourConvex()
388 isContourConvex_(contour.ptr<Point>(), total ) : in isContourConvex()
389 isContourConvex_(contour.ptr<Point2f>(), total ); in isContourConvex()
448 if( mat->cols + mat->rows - 1 < ptseq->total ) in cvConvexHull2()
464 int total = ptseq->total; in cvConvexHull2() local
465 if( total == 0 ) in cvConvexHull2()
482 int ctotal = (int)h0.total(); in cvConvexHull2()
490 cvSeqPushMulti(hullseq, h0.ptr(), (int)h0.total()); in cvConvexHull2()
495 mat->rows = hullseq->total; in cvConvexHull2()
497 mat->cols = hullseq->total; in cvConvexHull2()
573 if( mat->cols + mat->rows - 1 > ptseq->total ) in cvConvexityDefects()
589 if( ptseq->total < 4 || hull->total < 3) in cvConvexityDefects()
643 for( i = 0; i < hull->total; i++ ) in cvConvexityDefects()
733 if( contour->total == 0 ) in cvCheckContourConvexity()