diff --git a/include/vision/processor/active_search.h b/include/vision/processor/active_search.h index ec1e689486cf4b2815e105a0f50725040856fc59..cd2afc405c58d6300370c8e424919d241193a016 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 * */