ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Call the same function but use http://simplecv.org/docs/SimpleCV.html#i/SimpleCV.ImageClass.Image/getNumpyCv2 on your simpleCV image. E.g. :

cv2_to_imgmsg(simple_cv_image.getNumpyCv2(), encoding="passthrough")

Call the same function but use http://simplecv.org/docs/SimpleCV.html#i/SimpleCV.ImageClass.Image/getNumpyCv2 on your simpleCV image. E.g. :

cv2_to_imgmsg(simple_cv_image.getNumpyCv2(), encoding="passthrough")

And the other way around from an Image msg to a Simple CV image:

Image(imgmsg_to_cv2(image_msg, encoding="passthrough"), cv2image=True)