Ask Your Question

Revision history [back]

The problem is not in the line you suggested but in the line IplImage outx = src; Replace it with: IplImage outx = src.operator IplImage(); This is the recommended way to convert from a cv::Mat to an IplImage.