开发者

Converting CvSeq to CvMat

开发者 https://www.devze.com 2023-04-07 10:27 出处:网络
I have a sequence of CvPoint2D32f points in CvSeq and I want to convert it into a CvM开发者_开发百科at. How can I do that?Have a look at cvSeqToArray.It will dump the sequence to a contiguous array of

I have a sequence of CvPoint2D32f points in CvSeq and I want to convert it into a CvM开发者_开发百科at. How can I do that?


Have a look at cvSeqToArray. It will dump the sequence to a contiguous array of any type (in your case, it will be float). You can then create a matrix header for that array by using cvCreateMatHeader.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号