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