开发者

Integers to Matrix (cvMat)

开发者 https://www.devze.com 2023-01-29 02:44 出处:网络
Hey guys, I\'m working on a project. I need to use the function cvFindHomography in openCV before this step I have applied LK optical flow function开发者_运维知识库, so I get the features in the firs

Hey guys, I'm working on a project. I need to use the function cvFindHomography in openCV before this step I have applied LK optical flow function开发者_运维知识库, so I get the features in the first frame and in the second frame as INTEGERS, well in cvFindHomography I need to use these features but as cvMat not as integers.

Do you have any I idea how to put these integers in a Matrix in order to use them in the function mentioned above.

Thank you.


You can use the cvMat() constructor:

CV_INLINE CvMat cvMat( int rows, int cols, int type, void* data CV_DEFAULT(NULL))
0

精彩评论

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

关注公众号