ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

What kind of image is cv_ptr->image? According to OpenCV 2.2 documentation:

Only 8-bit (or 16-bit in the case of PNG, JPEG 2000 and TIFF) single-channel or 3-channel (with ‘BGR’ channel order) images can be saved using this function.

Make sure that cv_ptr->image is an 8 bit single-channel or 3-channel image.