Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.