segmentation fault on iplimage
Hi,
I have this piece of code that compiles well but ends with segmentation fault:
IplImage* image_in;
cv_bridge::CvImagePtr cv_im_ptr;
image_in->imageData = (char *) cv_im_ptr->image.data;
So far I fail to see why this goes wrong. Hints and suggestions welcome.
you probably should use a cv::Mat instead of an IplImage
really, they're trying to get rid of the c-api since 2010