Converting Mat to IplImage and vice versa

//converting Mat to IplImage

Mat image1;
IplImage* image2 = cvCloneImage(&(IplImage)image1);

// converting IplImage to Mat

IplImage* img = cvLoadImage("Deepika_Padukone.jpg");
Mat image3 = cvarrToMat(img);

Leave a Reply

Your email address will not be published. Required fields are marked *