Jmeyer1292 / robot_cal_tools

A suite of tools focused on calibration of sensors for robotic workcell development
Apache License 2.0
140 stars 40 forks source link

Special handling for mono16 images in command_line_cal.cpp #22

Closed schornakj closed 5 years ago

schornakj commented 5 years ago

Some RGBD camera drivers (in my case, the Orbbec Astra's) publish IR images as mono16, whereas the nifty command line capture tool expects images to use rgb8. This means that the IR images end up as entirely black -- not especially useful. I wanted to use IR images in my calibration process so I added a special case to command_line_cal.cpp to massage the bytes into the right configuration.

There's probably a better/cleaner/more elegant way to do this but I just wanted to get this tweak out there since it helped me solve a problem.