Qimage to cv::Mat convertion strange behaviour

后端 未结 6 2180
离开以前
离开以前 2020-12-19 16:18

I am trying to create an application where I am trying to integrate opencv and qt.

I managed successfully to convert a cv::Mat to QImage by using the code below:

6条回答
  •  Happy的楠姐
    2020-12-19 17:04

    I think you might find this useful. http://www.jdxyw.com/?p=1480

    It uses IplImage to get data, but you can use cv::Mat and Mat.data to get a pointer to the original matrix. I hope you might find this useful.

提交回复
热议问题