how to convert from cv::Mat to CvArr?

后端 未结 5 1378
遇见更好的自我
遇见更好的自我 2021-01-18 07:35

i have passed a lot of time searching on how to convert from cv::Mat or CvMat to CvArr but with no gain ,please help me in that,thanks.

5条回答
  •  长发绾君心
    2021-01-18 07:49

    convert first the image using the following:

    IplImage* oldstyleimg = &matimg.operator IplImage()
    

    I don t remember if it only create the header for the image or it makes a copy

提交回复
热议问题