How to publish Iplimage ? [closed]

asked 2013-04-08 04:43:24 -0600

guilhemsals gravatar image

updated 2014-01-28 17:16:05 -0600

ngrennan gravatar image

Hi! I would like to publish an Iplimage but i have some problems doing this. I use the code :

cv::Mat mat_image=cv::cvarrToMat(image); // image is Iplimage
cv_bridge::CvImage out_msg;
out_msg.encoding = sensor_msgs::image_encodings::TYPE_8UC1; 
out_msg.image    = mat_image; 

But when i try to open the image with rviz there is the error : [...]Stream size does not match calculated image size in Image[...]

Thanks for helping !

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-11-26 03:22:50.025026