Created
December 2, 2020 14:13
-
-
Save tanzby/68eb1230b9a9af4c1a4ec731d8fdff0d to your computer and use it in GitHub Desktop.
Convert sensor_msgs::CompressedImagePtr to cv::Mat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cv::Mat img = cv::imdecode(cv::Mat(msg->data), cv::IMREAD_GRAYSCALE); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment