Ask Your Question

Revision history [back]

You have not allocated any space for your image_in. Replace the first line with:

IplImage * image_in = new IplImage;

But it will be better to use cv::Mat instead of IplImage.