nms: part 1

This commit is contained in:
marina.kolpakova
2012-11-26 15:26:11 +04:00
parent a9f10e5cad
commit d2e88e1d4d
4 changed files with 95 additions and 8 deletions

View File

@@ -1552,12 +1552,14 @@ public:
enum {PEDESTRIAN = 0};
};
enum { NO_REJECT = 1, DOLLAR = 2, /*PASCAL = 4,*/ DEFAULT = NO_REJECT};
// An empty cascade will be created.
// Param minScale is a minimum scale relative to the original size of the image on which cascade will be applyed.
// Param minScale is a maximum scale relative to the original size of the image on which cascade will be applyed.
// Param scales is a number of scales from minScale to maxScale.
// Param rejfactor is used for NMS.
SCascade(const double minScale = 0.4, const double maxScale = 5., const int scales = 55, const int rejfactor = 1);
SCascade(const double minScale = 0.4, const double maxScale = 5., const int scales = 55, const int rejCriteria = 1);
virtual ~SCascade();
@@ -1595,7 +1597,7 @@ private:
double maxScale;
int scales;
int rejfactor;
int rejCriteria;
};
////////////////////////////////// SURF //////////////////////////////////////////