Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to convert CV_IMAGE_ELEM from IplImage* to Mat ?

One of the lines of the code that i'm editing from IplImage* to Mat is

CV_IMAGE_ELEM(output, float, pit->y, pit->x) = CV_IMAGE_ELEM(SWTImage, float, pit->y, pit->x);

Please tell me how to convert it into Mat format for C++.