First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.