Ask Your Question

Revision history [back]

To convert from Mat to IplImage :

 Mat mat_img;
IplImage ipl_img = mat_img;

For example to use ipl_img you will write ,

cvNot(&ipl_img ,ipl_img );

To convert from IplImage to Mat :

IplImage ipl_img;
Mat mat_img(ipl_img );

To convert from Mat to IplImage :

 Mat mat_img;
IplImage ipl_img = mat_img;

For example to use ipl_img you will write ,

cvNot(&ipl_img ,ipl_img );

To convert from IplImage to Mat :

IplImage ipl_img;
Mat mat_img(ipl_img );

To convert from Mat to IplImage :

 Mat mat_img;
IplImage ipl_img = mat_img;

For example to use ipl_img you will write ,

cvNot(&ipl_img ,ipl_img ,&ipl_img );

To convert from IplImage to Mat :

IplImage ipl_img;
Mat mat_img(ipl_img );