Robotics StackExchange | Archived questions

cv_bridge doesn't set 'step' properly

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:

Asked by 2ROS0 on 2018-02-07 16:43:55 UTC

Comments

Answers