From e35b0e1ebed455ed2adbe02ed23800e35e907ebf Mon Sep 17 00:00:00 2001
From: Joan Sola <jsola@iri.upc.edu>
Date: Sat, 16 Apr 2022 18:36:16 +0200
Subject: [PATCH] Use the new retainBest()

---
 src/processor/processor_visual_odometry.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/processor/processor_visual_odometry.cpp b/src/processor/processor_visual_odometry.cpp
index b0df0fecb..530633ccd 100644
--- a/src/processor/processor_visual_odometry.cpp
+++ b/src/processor/processor_visual_odometry.cpp
@@ -115,7 +115,7 @@ void ProcessorVisualOdometry::preProcess()
 
                 if (kps_roi.size() > 0){
                     // retain only the best image in each region of interest
-                    cv::KeyPointsFilter::retainBest(kps_roi, 1);
+                    retainBest(kps_roi, 1);
                     // Keypoints are detected in the local coordinates of the region of interest
                     // -> translate to the full image corner coordinate system
                     kps_roi.at(0).pt.x = kps_roi.at(0).pt.x + rect_roi.x;
-- 
GitLab