add ROI support

This commit is contained in:
marina.kolpakova
2012-11-06 01:30:20 +04:00
parent 6a3a723938
commit 157ab66ab9
4 changed files with 135 additions and 36 deletions

View File

@@ -556,9 +556,11 @@ public:
// Param image is a frame on which detector will be applied.
// Param rois is a vector of regions of interest. Only the objects that fall into one of the regions will be returned.
// Param objects is an output array of Detections
virtual void detect(const Mat& image, const std::vector<cv::Rect>& rois, std::vector<Detection>& objects) const;
virtual void detect(InputArray image, InputArray rois, std::vector<Detection>& objects) const;
private:
void detectNoRoi(const Mat& image, std::vector<Detection>& objects) const;
struct Filds;
Filds* filds;