First time here? Check out the FAQ!
answered 2013-04-19 12:32:53 -0600
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.
IplImage outx = src;
IplImage outx = src.operator IplImage();
cv::Mat
IplImage