Lines Matching refs:ptseq
364 CvSeq* ptseq = (CvSeq*)array; in cvMinAreaRect2() local
367 if( CV_IS_SEQ(ptseq) ) in cvMinAreaRect2()
369 if( !CV_IS_SEQ_POINT_SET(ptseq) && in cvMinAreaRect2()
370 (CV_SEQ_KIND(ptseq) != CV_SEQ_KIND_CURVE || !CV_IS_SEQ_CONVEX(ptseq) || in cvMinAreaRect2()
371 CV_SEQ_ELTYPE(ptseq) != CV_SEQ_ELTYPE_PPOINT )) in cvMinAreaRect2()
375 storage = ptseq->storage; in cvMinAreaRect2()
379 CV_CALL( ptseq = cvPointSeqFromMat( in cvMinAreaRect2()
392 if( !CV_IS_SEQ_CONVEX( ptseq )) in cvMinAreaRect2()
394 CV_CALL( ptseq = cvConvexHull2( ptseq, temp_storage, CV_CLOCKWISE, 1 )); in cvMinAreaRect2()
396 else if( !CV_IS_SEQ_POINT_SET( ptseq )) in cvMinAreaRect2()
400 if( !CV_IS_SEQ(ptseq->v_prev) || !CV_IS_SEQ_POINT_SET(ptseq->v_prev)) in cvMinAreaRect2()
403 cvStartReadSeq( ptseq, &reader ); in cvMinAreaRect2()
404 cvStartWriteSeq( CV_SEQ_KIND_CURVE|CV_SEQ_FLAG_CONVEX|CV_SEQ_ELTYPE(ptseq->v_prev), in cvMinAreaRect2()
405 sizeof(CvContour), CV_ELEM_SIZE(ptseq->v_prev->flags), in cvMinAreaRect2()
408 for( i = 0; i < ptseq->total; i++ ) in cvMinAreaRect2()
414 ptseq = cvEndWriteSeq( &writer ); in cvMinAreaRect2()
417 n = ptseq->total; in cvMinAreaRect2()
420 cvStartReadSeq( ptseq, &reader ); in cvMinAreaRect2()
422 if( CV_SEQ_ELTYPE( ptseq ) == CV_32SC2 ) in cvMinAreaRect2()