From a546accd52bbe84006b8d29e2805baef55befdc9 Mon Sep 17 00:00:00 2001
From: Mederic Fourmy <mederic.fourmy@gmail.com>
Date: Sat, 16 Apr 2022 11:38:26 +0200
Subject: [PATCH] Fix small bug in active search class implementation

---
 include/vision/processor/active_search.h | 7 -------
 src/processor/active_search.cpp          | 2 +-
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/include/vision/processor/active_search.h b/include/vision/processor/active_search.h
index fb79b623f..dc22ec79f 100644
--- a/include/vision/processor/active_search.h
+++ b/include/vision/processor/active_search.h
@@ -245,8 +245,6 @@ class ActiveSearchGrid {
          */
         void blockCell(const cv::Rect & _roi);
 
-        Eigen::Vector2i getGridSize() {return grid_size_;}
-
         /**
          * \brief Get the region of interest, reduced by a margin.
          */
@@ -274,11 +272,6 @@ class ActiveSearchGrid {
          */
         bool pickEmptyCell(Eigen::Vector2i & _cell);
 
-        /**
-         * \brief Get the region of interest, reduced by a margin.
-         */
-        void cell2roi(const Eigen::Vector2i & _cell, cv::Rect& _roi);
-
         /**
          * \brief True if the cell is blocked
          * \param _cell the queried cell
diff --git a/src/processor/active_search.cpp b/src/processor/active_search.cpp
index e9006dfe6..c3929761b 100644
--- a/src/processor/active_search.cpp
+++ b/src/processor/active_search.cpp
@@ -126,7 +126,7 @@ bool ActiveSearchGrid::pickRoi(cv::Rect & _roi) {
         return false;
 }
 
-void ActiveSearchGrid::blockCell(const cv::Rect & _cell)
+void ActiveSearchGrid::blockCell(const Eigen::Vector2i & _cell)
 {
     projections_count_(_cell(0), _cell(1)) = -1;
 }
-- 
GitLab