Home | History | Annotate | Download | only in src

Lines Matching refs:ptseq

405     CvSeq* ptseq = 0;
410 ptseq = (CvSeq*)array;
411 if( !CV_IS_SEQ_POINT_SET( ptseq ))
414 hull_storage = ptseq->storage;
418 ptseq = cvPointSeqFromMat( CV_SEQ_KIND_GENERIC, array, &contour_header, &block );
425 hullseq = cvCreateSeq(CV_SEQ_KIND_CURVE|CV_SEQ_ELTYPE(ptseq)|
448 if( mat->cols + mat->rows - 1 < ptseq->total )
451 if( CV_MAT_TYPE(mat->type) != CV_SEQ_ELTYPE(ptseq) &&
464 int total = ptseq->total;
475 cv::convexHull(cv::cvarrToMat(ptseq, false, false, 0, &_ptbuf), h0,
485 void* ptr = cvGetSeqElem(ptseq, idx[i]);
502 hull.c->rect = cvBoundingRect( ptseq,
503 ptseq->header_size < (int)sizeof(CvContour) ||
504 &ptseq->flags == &contour_header.flags );
528 CvSeq *ptseq = (CvSeq*)array, *hull = (CvSeq*)hullarray;
535 if( CV_IS_SEQ( ptseq ))
537 if( !CV_IS_SEQ_POINT_SET( ptseq ))
541 storage = ptseq->storage;
545 ptseq = cvPointSeqFromMat( CV_SEQ_KIND_GENERIC, array, &contour_header, &block );
548 if( CV_SEQ_ELTYPE( ptseq ) != CV_32SC2 )
573 if( mat->cols + mat->rows - 1 > ptseq->total )
589 if( ptseq->total < 4 || hull->total < 3)
596 /* recognize co-orientation of ptseq and its hull */
604 index1 = cvSeqElemIdx( ptseq, pos );
607 index2 = cvSeqElemIdx( ptseq, pos );
610 index3 = cvSeqElemIdx( ptseq, pos );
626 cvStartReadSeq( ptseq, &ptseq_reader, 0 );
632 index = cvSeqElemIdx( ptseq, (char*)hull_cur, 0 );
637 hull_cur = CV_GET_SEQ_ELEM( CvPoint, ptseq, index );
642 /* cycle through ptseq and hull with computing defects */
656 hull_next = CV_GET_SEQ_ELEM( CvPoint, ptseq, t );
669 /* go through ptseq to achieve next hull point */