Ask Your Question

Revision history [back]

Seems to me that you are not copying all the properties of image_in_mat into cv_ptr->image. Assuming that both of them are of type cv::Mat, you can try to do the following:

cv_ptr->image = image_in_mat;
cv::imshow ( "Image window", cv_ptr->image );

and see if that cause the seg fault. If that does not, your headers are not correct in the current implementation.