cv_bridge doesn't set 'step' properly

asked 2018-02-07 15:43:55 -0500

2ROS0 gravatar image

Hi,

I have a .jpg image that I use cv::imread to convert to cv::Mat. I then assign that to the cv_bridge::CvImage object. This however, only seems to work for mono images. For cases of bgr it doesn't set the step variable correctly.

Here is my code snippet:

edit retag flag offensive close merge delete