Add default constructors to params classes

pull/21/head
Vlad Shakhuro 11 years ago
parent 94338228c8
commit f722d4ff05
  1. 7
      modules/xobjdetect/include/opencv2/xobjdetect.hpp

@ -108,6 +108,9 @@ struct CV_EXPORTS WaldBoostParams
{ {
int weak_count; int weak_count;
float alpha; float alpha;
WaldBoostParams(): weak_count(100), alpha(0.01)
{}
}; };
@ -199,6 +202,10 @@ struct CV_EXPORTS ICFDetectorParams
int model_n_rows; int model_n_rows;
int model_n_cols; int model_n_cols;
double overlap; double overlap;
ICFDetectorParams(): feature_count(UINT_MAX), weak_count(100),
model_n_rows(40), model_n_cols(40), overlap(0.0)
{}
}; };
class CV_EXPORTS ICFDetector class CV_EXPORTS ICFDetector

Loading…
Cancel
Save