refactor(*): adapt stereo stream to different device

This commit is contained in:
John Zhao
2018-12-21 00:23:42 +08:00
parent a38e6a782a
commit 91da3a3ca8
16 changed files with 453 additions and 164 deletions

View File

@@ -48,7 +48,7 @@ cv::Mat frame2mat(const std::shared_ptr<device::Frame> &frame) {
} else if (frame->format() == Format::BGR888) {
cv::Mat img(frame->height(), frame->width(), CV_8UC3, frame->data());
return img;
} else {
} else { // Format::GRAY
return cv::Mat(frame->height(), frame->width(), CV_8UC1, frame->data());
}
}