|
|
|
@ -400,7 +400,7 @@ cvConvexHull2( const CvArr* array, void* hull_storage, |
|
|
|
|
|
|
|
|
|
CvMat* mat = 0; |
|
|
|
|
CvContour contour_header; |
|
|
|
|
union { CvContour c; CvSeq s; } hull_header; |
|
|
|
|
CvSeq hull_header; |
|
|
|
|
CvSeqBlock block, hullblock; |
|
|
|
|
CvSeq* ptseq = 0; |
|
|
|
|
CvSeq* hullseq = 0; |
|
|
|
@ -456,7 +456,7 @@ cvConvexHull2( const CvArr* array, void* hull_storage, |
|
|
|
|
hullseq = cvMakeSeqHeaderForArray( |
|
|
|
|
CV_SEQ_KIND_CURVE|CV_MAT_TYPE(mat->type)|CV_SEQ_FLAG_CLOSED, |
|
|
|
|
sizeof(contour_header), CV_ELEM_SIZE(mat->type), mat->data.ptr, |
|
|
|
|
mat->cols + mat->rows - 1, &hull_header.s, &hullblock ); |
|
|
|
|
mat->cols + mat->rows - 1, &hull_header, &hullblock ); |
|
|
|
|
cvClearSeq( hullseq ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -522,7 +522,7 @@ CV_IMPL CvSeq* cvConvexityDefects( const CvArr* array, |
|
|
|
|
int rev_orientation; |
|
|
|
|
|
|
|
|
|
CvContour contour_header; |
|
|
|
|
union { CvContour c; CvSeq s; } hull_header; |
|
|
|
|
CvSeq hull_header; |
|
|
|
|
CvSeqBlock block, hullblock; |
|
|
|
|
CvSeq *ptseq = (CvSeq*)array, *hull = (CvSeq*)hullarray; |
|
|
|
|
|
|
|
|
@ -575,7 +575,7 @@ CV_IMPL CvSeq* cvConvexityDefects( const CvArr* array, |
|
|
|
|
hull = cvMakeSeqHeaderForArray( |
|
|
|
|
CV_SEQ_KIND_CURVE|CV_MAT_TYPE(mat->type)|CV_SEQ_FLAG_CLOSED, |
|
|
|
|
sizeof(CvContour), CV_ELEM_SIZE(mat->type), mat->data.ptr, |
|
|
|
|
mat->cols + mat->rows - 1, &hull_header.s, &hullblock ); |
|
|
|
|
mat->cols + mat->rows - 1, &hull_header, &hullblock ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
is_index = CV_SEQ_ELTYPE(hull) == CV_SEQ_ELTYPE_INDEX; |
|
|
|
|