From tutorial_code\core\interoperability_with_OpenCV_1\interoperability_with_OpenCV_1.cpp
opencv1初始化图像
const char* imagename = "lena.jpg";
Ptr<IplImage> IplI(cvLoadImage(imagename));
Mat I = cv::cvarrToMat(IplI);
opencv1函数语句
IplImage cv_planes_0 = planes[0], cv_noise = noisyI;
cvAddWeighted(&cv_planes_0, contrast_gain, &cv_noise, 1, -128 + brightness_gain, &cv_planes_0);