51 #include <visp/vpImage.h>
52 #include <visp/vpDisplay.h>
53 #include <visp/vpTracker.h>
54 #include <visp/vpRect.h>
55 #include <visp/vpImagePoint.h>
57 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
58 # include <visp/vpList.h>
129 static const unsigned int SPIRAL_SEARCH_SIZE;
201 unsigned int thickness=1);
215 this->u_max - this->u_min + 1,
216 this->v_max - this->v_min + 1);
235 return this->ip_edges_list;
247 return this->ip_connexities_list;
260 return this->maxDotSizePercentage;
266 return (this->mean_gray_level);
277 return (this->u_max - this->u_min + 1);
288 return (this->v_max - this->v_min + 1);
294 unsigned int gray_level_min,
unsigned int gray_level_max);
297 bool operator ==(
const vpDot& d);
298 bool operator !=(
const vpDot& d);
304 friend VISP_EXPORT std::ostream& operator<< (std::ostream& os,
vpDot& d) {
305 return (os <<
"(" << d.
getCog() <<
")" ) ;
308 void print(std::ostream& os) { os << *
this << std::endl ; }
337 void setMaxDotSize(
double percentage) ;
339 this->gray_level_min = gray_level_min;
342 this->gray_level_max = gray_level_max;
344 void setGrayLevelPrecision(
const double & grayLevelPrecision );
372 std::list<vpImagePoint> ip_connexities_list;
375 std::list<vpImagePoint> ip_edges_list;
381 vpConnexityType connexityType;
387 unsigned int u_min, u_max, v_min, v_max;
392 unsigned int thickness;
394 double maxDotSizePercentage;
395 unsigned char gray_level_out;
397 double mean_gray_level;
398 unsigned int gray_level_min;
399 unsigned int gray_level_max;
400 double grayLevelPrecision;
405 bool compute_moment ;
409 void setGrayLevelOut();
411 double &mean_value,
double &u_cog,
double &v_cog,
double &n);
413 double &mean_value,
double &u_cog,
double &v_cog,
double &n,std::vector<bool> &checkTab);
420 unsigned int thickness=1);
423 unsigned int thickness=1);
425 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
439 vp_deprecated
void getEdges(std::list<vpImagePoint> &edges_list) {
440 edges_list = this->ip_edges_list;
456 connexities_list.
kill();
457 std::list<vpImagePoint>::const_iterator it;
458 for (it = ip_connexities_list.begin(); it != ip_connexities_list.end(); ++it) {
459 connexities_list += *it;