1 | initial version |
the old(1.0) opencv Api used IplImages, CvMats and all those functions starting with cv, so:
1.0: IplImage * img = cvLoadImage("my.png");
the newer one(2.0) uses cv::Mats, and anything from namespace cv. so :
2.0: cv::Mat img = cv::imread("my.png");
yes, it's a bit confusing. if you're just starting with opencv, might better stick to the NEW one, because everything currently developed is using that.