Skip to content
Snippets Groups Projects
Commit 820aa729 authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

Hack to display the right image

parent 50331cf3
No related branches found
No related tags found
No related merge requests found
Pipeline #10881 passed
...@@ -143,7 +143,14 @@ static void run(const string &file) { ...@@ -143,7 +143,14 @@ static void run(const string &file) {
// Send RGB+Depth images for local rendering // Send RGB+Depth images for local rendering
if (prgb.rows > 0) display.render(prgb, pdepth, source->getParameters()); if (prgb.rows > 0) display.render(prgb, pdepth, source->getParameters());
if (config["display"]["right"]) cv::imshow("Right: ", source->getRight()); if (config["display"]["right"]) {
Mat rgbr = source->getRight();
cv::namedWindow("Right: ", cv::WINDOW_KEEPRATIO);
cv::line(rgbr, cv::Point(0, rgbr.rows/2), cv::Point(rgbr.cols-1, rgbr.rows/2), cv::Scalar(0,0,255), 1);
cv::line(rgbr, cv::Point(rgbr.cols/2, 0), cv::Point(rgbr.cols/2, rgbr.rows-1), cv::Scalar(0,0,255), 1);
cv::imshow("Right: ", rgbr);
}
display.wait(1); display.wait(1);
// Wait for both pipelines to complete // Wait for both pipelines to complete
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment