leggedrobotics / darknet_ros

YOLO ROS: Real-Time Object Detection for ROS
BSD 3-Clause "New" or "Revised" License
2.19k stars 1.18k forks source link

Implicitly convert A-channel images to 3-channel. #336

Closed kdhansen closed 3 years ago

kdhansen commented 3 years ago

Handles all acceptable encodings used by cv_bridge. Scales mono16 to 8 bit.

This solves #330, which I inadvertently introduced with ae23d0f2fa2fd08b56d61e7aa65c851aa340ae3d

mbjelonic commented 3 years ago

@kdhansen thank you for this fix!