Commit 2f13e4ce authored by Alexey Spizhevoy's avatar Alexey Spizhevoy

refactored hog, added camera support into hog_sample

parent 16bcf9b6
...@@ -1178,21 +1178,25 @@ namespace cv ...@@ -1178,21 +1178,25 @@ namespace cv
size_t getDescriptorSize() const; size_t getDescriptorSize() const;
size_t getBlockHistogramSize() const; size_t getBlockHistogramSize() const;
double getWinSigma() const;
void setSVMDetector(const vector<float>& detector);
bool checkDetectorSize() const;
static vector<float> getDefaultPeopleDetector(); static vector<float> getDefaultPeopleDetector();
static vector<float> getPeopleDetector_48x96(); static vector<float> getPeopleDetector_48x96();
static vector<float> getPeopleDetector_64x128(); static vector<float> getPeopleDetector_64x128();
void setSVMDetector(const vector<float>& detector);
bool checkDetectorSize() const;
void detect(const GpuMat& img, vector<Point>& found_locations, double hit_threshold=0, void detect(const GpuMat& img, vector<Point>& found_locations,
Size win_stride=Size(), Size padding=Size()); double hit_threshold=0, Size win_stride=Size(),
Size padding=Size());
void detectMultiScale(const GpuMat& img, vector<Rect>& found_locations, void detectMultiScale(const GpuMat& img, vector<Rect>& found_locations,
double hit_threshold=0, Size win_stride=Size(), Size padding=Size(), double hit_threshold=0, Size win_stride=Size(),
double scale0=1.05, int group_threshold=2); Size padding=Size(), double scale0=1.05,
int group_threshold=2);
void getDescriptors(const GpuMat& img, Size win_stride, GpuMat& descriptors, void getDescriptors(const GpuMat& img, Size win_stride,
GpuMat& descriptors,
int descr_format=DESCR_FORMAT_COL_BY_COL); int descr_format=DESCR_FORMAT_COL_BY_COL);
Size win_size; Size win_size;
...@@ -1208,6 +1212,7 @@ namespace cv ...@@ -1208,6 +1212,7 @@ namespace cv
protected: protected:
void computeBlockHistograms(const GpuMat& img); void computeBlockHistograms(const GpuMat& img);
void computeGradient(const GpuMat& img, GpuMat& grad, GpuMat& qangle); void computeGradient(const GpuMat& img, GpuMat& grad, GpuMat& qangle);
double getWinSigma() const;
static int numPartsWithin(int size, int part_size, int stride); static int numPartsWithin(int size, int part_size, int stride);
static Size numPartsWithin(Size size, Size part_size, Size stride); static Size numPartsWithin(Size size, Size part_size, Size stride);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment