| 315 | } |
| 316 | |
| 317 | cv::Mat DecodeImage(const sensor_msgs::ImageConstPtr &image_msg) |
| 318 | { |
| 319 | cv::Mat image; |
| 320 | cv_bridge::CvImagePtr input_bridge; |
| 321 | try |
| 322 | { |
| 323 | input_bridge = cv_bridge::toCvCopy(image_msg, image_msg->encoding); |
| 324 | image = input_bridge->image; |
| 325 | } |
| 326 | catch (cv_bridge::Exception &ex) |
| 327 | { |
| 328 | ROS_ERROR("Failed to convert depth image"); |
| 329 | } |
| 330 | return image; |
| 331 | } |
| 332 | |
| 333 | } // namespace sloam |
nothing calls this directly
no outgoing calls
no test coverage detected