From 8d0a4f25b60a8ee51d73fa1d5db6768bcc7053d5 Mon Sep 17 00:00:00 2001 From: Samuel Felton Date: Fri, 4 Oct 2024 16:57:57 +0200 Subject: [PATCH] Update border in ccd tracker --- modules/tracker/rbt/src/features/vpRBSilhouetteCCDTracker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tracker/rbt/src/features/vpRBSilhouetteCCDTracker.cpp b/modules/tracker/rbt/src/features/vpRBSilhouetteCCDTracker.cpp index 0eb3486cec..13dd062128 100644 --- a/modules/tracker/rbt/src/features/vpRBSilhouetteCCDTracker.cpp +++ b/modules/tracker/rbt/src/features/vpRBSilhouetteCCDTracker.cpp @@ -93,7 +93,7 @@ void vpRBSilhouetteCCDTracker::extractFeatures(const vpRBFeatureTrackerInput &fr // std::cout << sp.j << ", " << sp.i << std::endl; int ii = sp.i, jj = sp.j; - if (ii < 4 || jj < 4 || static_cast(ii) > frame.I.getHeight() - 4 || static_cast(jj) > frame.I.getWidth() - 4) { + if (ii <= 4 || jj <= 4 || static_cast(ii) >= frame.I.getHeight() - 4 || static_cast(jj) >= frame.I.getWidth() - 4) { continue; } vpRBSilhouetteControlPoint pccd;