Created
October 4, 2018 12:08
-
-
Save fjperezgrau/47264d650539a1db0eaef24660d1f482 to your computer and use it in GitHub Desktop.
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
if (last_image_.rows == msg->height && last_image_.cols == msg->width) | |
{ | |
cv::cvtColor(last_image_, cv_image.image, CV_BGR2GRAY); | |
used_last_image_ = true; | |
} | |
else | |
{ | |
cv_image.image = cv::Mat(msg->height, msg->width, CV_8U); | |
cv_image.image = cv::Scalar(128); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment