From 25d737d75e48ce09b5706b3a9a4ef82b1bf47173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu> Date: Thu, 14 Apr 2022 14:32:57 +0200 Subject: [PATCH] doc --- include/vision/processor/active_search.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/vision/processor/active_search.h b/include/vision/processor/active_search.h index ec1e68948..cd2afc405 100644 --- a/include/vision/processor/active_search.h +++ b/include/vision/processor/active_search.h @@ -118,9 +118,15 @@ namespace wolf{ * obs.process(); // process observation * * // Now we go to initialization - * grid.pickRoi(roi); // roi is now region of interest - * if (detectFeature(roi)) // detect inside ROI - * initLandmark(); // initialize only if successful detection + * num_new_detections = 0; + * while(num_new_detections < max_detections) + * grid.pickRoi(roi); // roi is now region of interest + * if (detectFeature(roi)) // detect inside ROI + * initLandmark(); // initialize only if successful detection + * num_new_detections++; + * else + * blockCell(roi) + * * \endcode * */ -- GitLab