First time here? Check out the FAQ!
answered Apr 19 '13
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