ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
![]() | 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")
![]() | 2 | No.2 Revision |
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)