Home
last modified time | relevance | path

Searched refs:ptseq (Results 1 – 7 of 7) sorted by relevance

/external/opencv/cv/src/
Dcvconvhull.cpp200 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()
[all …]
Dcvrotcalipers.cpp364 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()
[all …]
Dcvlinefit.cpp651 CvSeq* ptseq = (CvSeq*)array; in cvFitLine() local
657 if( CV_IS_SEQ(ptseq) ) in cvFitLine()
659 type = CV_SEQ_ELTYPE(ptseq); in cvFitLine()
660 if( ptseq->total == 0 ) in cvFitLine()
663 CV_ELEM_SIZE(type) != ptseq->elem_size ) in cvFitLine()
680 CV_CALL( ptseq = cvMakeSeqHeaderForArray( in cvFitLine()
688 if( CV_MAT_DEPTH(type) == CV_32F && ptseq->first->next == ptseq->first ) in cvFitLine()
691 points = ptseq->first->data; in cvFitLine()
695 CV_CALL( buffer = points = (schar*)cvAlloc( ptseq->total*CV_ELEM_SIZE(type) )); in cvFitLine()
696 CV_CALL( cvCvtSeqToArray( ptseq, points, CV_WHOLE_SEQ )); in cvFitLine()
[all …]
Dcvshapedescr.cpp988 CvSeq* ptseq = 0; in cvFitEllipse2() local
994 ptseq = (CvSeq*)array; in cvFitEllipse2()
995 if( !CV_IS_SEQ_POINT_SET( ptseq )) in cvFitEllipse2()
1000 CV_CALL( ptseq = cvPointSeqFromMat( in cvFitEllipse2()
1004 n = ptseq->total; in cvFitEllipse2()
1008 icvFitEllipse_F( ptseq, &box ); in cvFitEllipse2()
1028 cvStartReadSeq( ptseq, &reader ); in cvFitEllipse2()
1029 is_float = CV_SEQ_ELTYPE(ptseq) == CV_32FC2; in cvFitEllipse2()
1133 CvSeq* ptseq = 0; in cvBoundingRect() local
1146 ptseq = (CvSeq*)array; in cvBoundingRect()
[all …]
/external/opencv3/modules/imgproc/src/
Dconvhull.cpp405 CvSeq* ptseq = 0; in cvConvexHull2() local
410 ptseq = (CvSeq*)array; in cvConvexHull2()
411 if( !CV_IS_SEQ_POINT_SET( ptseq )) in cvConvexHull2()
414 hull_storage = ptseq->storage; in cvConvexHull2()
418 ptseq = cvPointSeqFromMat( CV_SEQ_KIND_GENERIC, array, &contour_header, &block ); in cvConvexHull2()
425 hullseq = cvCreateSeq(CV_SEQ_KIND_CURVE|CV_SEQ_ELTYPE(ptseq)| in cvConvexHull2()
448 if( mat->cols + mat->rows - 1 < ptseq->total ) in cvConvexHull2()
451 if( CV_MAT_TYPE(mat->type) != CV_SEQ_ELTYPE(ptseq) && in cvConvexHull2()
464 int total = ptseq->total; in cvConvexHull2()
475 cv::convexHull(cv::cvarrToMat(ptseq, false, false, 0, &_ptbuf), h0, in cvConvexHull2()
[all …]
Dshapedescr.cpp1050 CvSeq* ptseq = 0; in cvBoundingRect() local
1058 ptseq = (CvSeq*)array; in cvBoundingRect()
1059 if( !CV_IS_SEQ_POINT_SET( ptseq )) in cvBoundingRect()
1062 if( ptseq->header_size < (int)sizeof(CvContour)) in cvBoundingRect()
1074 ptseq = cvPointSeqFromMat(CV_SEQ_KIND_GENERIC, mat, &contour_header, &block); in cvBoundingRect()
1086 return ((CvContour*)ptseq)->rect; in cvBoundingRect()
1092 else if( ptseq->total ) in cvBoundingRect()
1095 rect = cv::pointSetBoundingRect(cv::cvarrToMat(ptseq, false, false, 0, &abuf)); in cvBoundingRect()
1098 ((CvContour*)ptseq)->rect = rect; in cvBoundingRect()
/external/opencv3/modules/imgproc/test/
Dtest_convhull.cpp290 CvSeq* ptseq = (CvSeq*)pointsSet; in generate_point_set() local
291 total = ptseq->total; in generate_point_set()
292 point_type = CV_SEQ_ELTYPE(ptseq); in generate_point_set()
293 cvStartReadSeq( ptseq, &reader ); in generate_point_set()
547 CvSeq header, hheader, *ptseq, *hseq; in validate_test_results() local
551 ptseq = points1; in validate_test_results()
553 ptseq = cvMakeSeqHeaderForArray( CV_MAT_TYPE(points2->type), in validate_test_results()
556 point_count = ptseq->total; in validate_test_results()
595 idx = cvSeqElemIdx( ptseq, *(uchar**)ptr ); in validate_test_results()
1182 CvSeq* ptseq = (CvSeq*)pointsSet; in generate_point_set() local
[all …]