OpenCV: IplImage versus Mat, which to use?

后端 未结 11 1157
一整个雨季
一整个雨季 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:15

    Iplimage is some structure of C interface in Opencv, and Mat is more suitable for C++ program and support some C++ styles like ref parameter and stream operator, etc. Although they are all object oriented programming, Mat includes more methods itself than Iplimage does, like create and release, which Ipliamge would call some cvXXX interface to complete. Moreover, Mat is a new structure from Opencv2, which I think is symbol of development for the old ones. I wish it help.

提交回复
热议问题