From 632d8504c9ebcf69c9ee244a633dd9caad1523c3 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Fri, 15 May 2026 13:59:41 -0700 Subject: [PATCH] fixed shenanigans when rendering markers with multi cameras --- guilib/src/MainWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guilib/src/MainWindow.cpp b/guilib/src/MainWindow.cpp index e166a5bf..8daf26b2 100644 --- a/guilib/src/MainWindow.cpp +++ b/guilib/src/MainWindow.cpp @@ -5296,6 +5296,9 @@ void MainWindow::drawLandmarks(cv::Mat & image, const Signature & signature) { 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)