image_rect has 8UC1 format, not MONO8

Issue #52 resolved
Ryohei Ueda created an issue

Does openni publish 8UC1 image? 8UC1 cannot be visualized image_view because cv_bridge does not support conversion from 8UC1 to bgr8.

rosrun image_view2 image_view2 image:=/multisense_local/right/image_rect reports following error. [ERROR] [1445331066.756292171]: Unable to convert 8UC1 image to bgr8

Comments (4)

  1. Matt Alvarado

    Hi Ryohei,

    I apologize for changing the image encoding type from "mono8" to 8UC1. I assumed they were equivalent, although clearly that is not the case for all ROS applications. I will modify the encodings to use mono8 and release a new version of the ROS driver.

    Thanks, Matt Alvarado Engineer Carnegie Robotics

  2. Matt Alvarado

    Hi Ryohei,

    The latest ROS driver release 3.4.5 changes the image encodings back to mono8 and mono16 from 8UC1 and 16UC1. Please let me know if this resolves your issue.

    Thanks, Matt Alvarado Engineer Carnegie Robotics

  3. bitbwshi

    Hi Matt,

    I did a brief test with latest 3.4.5 version. The "type" error is fixed, but it seems not publishing any VALID left/disparity. They are most 0s and with less frequency than right/disparity.

  4. Log in to comment