First time here? Check out the FAQ!
answered 2014-06-13 09:01:52 -0600
You have not allocated any space for your image_in. Replace the first line with:
image_in
IplImage * image_in = new IplImage;
But it will be better to use cv::Mat instead of IplImage.
cv::Mat
IplImage