OpenCV: IplImage versus Mat, which to use?

后端 未结 11 1152
一整个雨季
一整个雨季 2020-12-13 01:56

I\'m pretty new to OpenCV (about 2 months now). I have the book Learning OpenCV by Bradski and Kaehler. My question is, if I want to do everything in a 2.0+ manner, when sho

11条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-13 02:08

    I believe using cv::Mat is much more convenient. it is more generic. We can see IplImage being a subset of cv::Mat. The default datatype for IplImage is unsigned integer while that for cv::Mat is double. So it is much more easy to use Mat for any kind of mathematical operation.

提交回复
热议问题