First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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 );
click to hide/show revision 2
No.2 Revision

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 );
click to hide/show revision 3
No.3 Revision

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 );