Skip to content

Commit

Permalink
Merge pull request #81 from furuya-kenji/master
Browse files Browse the repository at this point in the history
Update cameraReader.cpp
  • Loading branch information
ravijo authored Dec 1, 2022
2 parents afecab6 + 90afefa commit 21e6c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cameraReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ namespace ros_openpose

// in case of '16UC1' encoding (depth values are in millimeter),
// a manually conversion from millimeter to meter is required.
if (depthMsg->encoding == sensor_msgs::image_encodings::TYPE_16UC1)
if (depthMsg->encoding == sensor_msgs::image_encodings::TYPE_16UC1 || depthMsg->encoding == sensor_msgs::image_encodings::MONO16)
// -1 represents no change in datatype
// src: https://docs.opencv.org/master/d3/d63/classcv_1_1Mat.html#adf88c60c5b4980e05bb556080916978b
depthPtr->image.convertTo(mDepthImage, -1, 0.001f);
Expand Down

0 comments on commit 21e6c3e

Please sign in to comment.