mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-11 04:19:50 +08:00
fixed shenanigans when rendering markers with multi cameras
This commit is contained in:
@@ -5296,6 +5296,9 @@ void MainWindow::drawLandmarks(cv::Mat & image, const Signature & signature)
|
|||||||
{
|
{
|
||||||
imagePoints[j].x += i*model.imageWidth();
|
imagePoints[j].x += i*model.imageWidth();
|
||||||
}
|
}
|
||||||
|
// Make sure the frame origin is visible
|
||||||
|
valid = imagePoints[0].x >= i*model.imageWidth() && imagePoints[0].x < (i+1)*model.imageWidth() &&
|
||||||
|
imagePoints[0].y >= 0 && imagePoints[0].y < image.rows;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(valid)
|
if(valid)
|
||||||
|
|||||||
Reference in New Issue
Block a user