Lines Matching refs:ptseq
200 CvSeq* ptseq, CvSeqWriter* writer ) in CV_IMPLEMENT_QSORT()
207 int idx, first_idx = ptseq->first->start_index; in CV_IMPLEMENT_QSORT()
212 CvSeqBlock* block = ptseq->first; in CV_IMPLEMENT_QSORT()
216 if( block == ptseq->first ) in CV_IMPLEMENT_QSORT()
248 CvSeq* ptseq = 0; in cvConvexHull2() local
260 ptseq = (CvSeq*)array; in cvConvexHull2()
261 if( !CV_IS_SEQ_POINT_SET( ptseq )) in cvConvexHull2()
264 hull_storage = ptseq->storage; in cvConvexHull2()
268 CV_CALL( ptseq = cvPointSeqFromMat( in cvConvexHull2()
277 CV_SEQ_KIND_CURVE|CV_SEQ_ELTYPE(ptseq)| in cvConvexHull2()
300 if( mat->cols + mat->rows - 1 < ptseq->total ) in cvConvexHull2()
303 if( CV_MAT_TYPE(mat->type) != CV_SEQ_ELTYPE(ptseq) && in cvConvexHull2()
316 total = ptseq->total; in cvConvexHull2()
327 is_float = CV_SEQ_ELTYPE(ptseq) == CV_32FC2; in cvConvexHull2()
332 CV_CALL( pointer = (CvPoint**)cvAlloc( ptseq->total*sizeof(pointer[0]) )); in cvConvexHull2()
333 CV_CALL( stack = (int*)cvAlloc( (ptseq->total + 2)*sizeof(stack[0]) )); in cvConvexHull2()
336 cvStartReadSeq( ptseq, &reader ); in cvConvexHull2()
341 CV_NEXT_SEQ_ELEM( ptseq->elem_size, reader ); in cvConvexHull2()
395 int tr_count = sklansky( pointer, ptseq->total - 1, maxy_ind, tr_stack, -1, -1 ); in cvConvexHull2()
415 0, tl_count-1, ptseq, &writer )); in cvConvexHull2()
417 tr_count-1, 0, ptseq, &writer )); in cvConvexHull2()
435 int br_count = sklansky( pointer, ptseq->total - 1, miny_ind, br_stack, 1, 1 ); in cvConvexHull2()
470 0, bl_count-1, ptseq, &writer )); in cvConvexHull2()
472 br_count-1, 0, ptseq, &writer )); in cvConvexHull2()
497 hull.c->rect = cvBoundingRect( ptseq, in cvConvexHull2()
498 ptseq->header_size < (int)sizeof(CvContour) || in cvConvexHull2()
499 &ptseq->flags == &contour_header.flags ); in cvConvexHull2()
536 CvSeq *ptseq = (CvSeq*)array, *hull = (CvSeq*)hullarray; in cvConvexityDefects() local
543 if( CV_IS_SEQ( ptseq )) in cvConvexityDefects()
545 if( !CV_IS_SEQ_POINT_SET( ptseq )) in cvConvexityDefects()
549 storage = ptseq->storage; in cvConvexityDefects()
553 CV_CALL( ptseq = cvPointSeqFromMat( in cvConvexityDefects()
557 if( CV_SEQ_ELTYPE( ptseq ) != CV_32SC2 ) in cvConvexityDefects()
583 if( mat->cols + mat->rows - 1 > ptseq->total ) in cvConvexityDefects()
600 if( ptseq->total < 4 || hull->total < 3) in cvConvexityDefects()
615 CV_CALL( index1 = cvSeqElemIdx( ptseq, pos )); in cvConvexityDefects()
618 CV_CALL( index2 = cvSeqElemIdx( ptseq, pos )); in cvConvexityDefects()
621 CV_CALL( index3 = cvSeqElemIdx( ptseq, pos )); in cvConvexityDefects()
637 cvStartReadSeq( ptseq, &ptseq_reader, 0 ); in cvConvexityDefects()
643 index = cvSeqElemIdx( ptseq, (char*)hull_cur, 0 ); in cvConvexityDefects()
648 hull_cur = CV_GET_SEQ_ELEM( CvPoint, ptseq, index ); in cvConvexityDefects()
667 hull_next = CV_GET_SEQ_ELEM( CvPoint, ptseq, t ); in cvConvexityDefects()