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
.
精彩评论