Commit 2e343ef6 authored by Alexander Alekhin's avatar Alexander Alekhin Committed by GitHub

Merge pull request #9102 from varunagrawal:2.4-vector

gpu.hpp vector scope fix
parents 3dedd62f af3c5444
...@@ -435,13 +435,13 @@ CV_EXPORTS void LUT(const GpuMat& src, const Mat& lut, GpuMat& dst, Stream& stre ...@@ -435,13 +435,13 @@ CV_EXPORTS void LUT(const GpuMat& src, const Mat& lut, GpuMat& dst, Stream& stre
CV_EXPORTS void merge(const GpuMat* src, size_t n, GpuMat& dst, Stream& stream = Stream::Null()); CV_EXPORTS void merge(const GpuMat* src, size_t n, GpuMat& dst, Stream& stream = Stream::Null());
//! makes multi-channel array out of several single-channel arrays //! makes multi-channel array out of several single-channel arrays
CV_EXPORTS void merge(const vector<GpuMat>& src, GpuMat& dst, Stream& stream = Stream::Null()); CV_EXPORTS void merge(const std::vector<GpuMat>& src, GpuMat& dst, Stream& stream = Stream::Null());
//! copies each plane of a multi-channel array to a dedicated array //! copies each plane of a multi-channel array to a dedicated array
CV_EXPORTS void split(const GpuMat& src, GpuMat* dst, Stream& stream = Stream::Null()); CV_EXPORTS void split(const GpuMat& src, GpuMat* dst, Stream& stream = Stream::Null());
//! copies each plane of a multi-channel array to a dedicated array //! copies each plane of a multi-channel array to a dedicated array
CV_EXPORTS void split(const GpuMat& src, vector<GpuMat>& dst, Stream& stream = Stream::Null()); CV_EXPORTS void split(const GpuMat& src, std::vector<GpuMat>& dst, Stream& stream = Stream::Null());
//! computes magnitude of complex (x(i).re, x(i).im) vector //! computes magnitude of complex (x(i).re, x(i).im) vector
//! supports only CV_32FC2 type //! supports only CV_32FC2 type
...@@ -1268,9 +1268,9 @@ private: ...@@ -1268,9 +1268,9 @@ private:
struct CV_EXPORTS HOGConfidence struct CV_EXPORTS HOGConfidence
{ {
double scale; double scale;
vector<Point> locations; std::vector<Point> locations;
vector<double> confidences; std::vector<double> confidences;
vector<double> part_scores[4]; std::vector<double> part_scores[4];
}; };
struct CV_EXPORTS HOGDescriptor struct CV_EXPORTS HOGDescriptor
...@@ -1288,27 +1288,27 @@ struct CV_EXPORTS HOGDescriptor ...@@ -1288,27 +1288,27 @@ struct CV_EXPORTS HOGDescriptor
size_t getDescriptorSize() const; size_t getDescriptorSize() const;
size_t getBlockHistogramSize() const; size_t getBlockHistogramSize() const;
void setSVMDetector(const vector<float>& detector); void setSVMDetector(const std::vector<float>& detector);
static vector<float> getDefaultPeopleDetector(); static std::vector<float> getDefaultPeopleDetector();
static vector<float> getPeopleDetector48x96(); static std::vector<float> getPeopleDetector48x96();
static vector<float> getPeopleDetector64x128(); static std::vector<float> getPeopleDetector64x128();
void detect(const GpuMat& img, vector<Point>& found_locations, void detect(const GpuMat& img, std::vector<Point>& found_locations,
double hit_threshold=0, Size win_stride=Size(), double hit_threshold=0, Size win_stride=Size(),
Size padding=Size()); Size padding=Size());
void detectMultiScale(const GpuMat& img, vector<Rect>& found_locations, void detectMultiScale(const GpuMat& img, std::vector<Rect>& found_locations,
double hit_threshold=0, Size win_stride=Size(), double hit_threshold=0, Size win_stride=Size(),
Size padding=Size(), double scale0=1.05, Size padding=Size(), double scale0=1.05,
int group_threshold=2); int group_threshold=2);
void computeConfidence(const GpuMat& img, vector<Point>& hits, double hit_threshold, void computeConfidence(const GpuMat& img, std::vector<Point>& hits, double hit_threshold,
Size win_stride, Size padding, vector<Point>& locations, vector<double>& confidences); Size win_stride, Size padding, std::vector<Point>& locations, std::vector<double>& confidences);
void computeConfidenceMultiScale(const GpuMat& img, vector<Rect>& found_locations, void computeConfidenceMultiScale(const GpuMat& img, std::vector<Rect>& found_locations,
double hit_threshold, Size win_stride, Size padding, double hit_threshold, Size win_stride, Size padding,
vector<HOGConfidence> &conf_out, int group_threshold); std::vector<HOGConfidence> &conf_out, int group_threshold);
void getDescriptors(const GpuMat& img, Size win_stride, void getDescriptors(const GpuMat& img, Size win_stride,
GpuMat& descriptors, GpuMat& descriptors,
...@@ -1838,11 +1838,11 @@ public: ...@@ -1838,11 +1838,11 @@ public:
private: private:
GpuMat uPyr_[2]; GpuMat uPyr_[2];
vector<GpuMat> prevPyr_; std::vector<GpuMat> prevPyr_;
vector<GpuMat> nextPyr_; std::vector<GpuMat> nextPyr_;
GpuMat vPyr_[2]; GpuMat vPyr_[2];
vector<GpuMat> buf_; std::vector<GpuMat> buf_;
vector<GpuMat> unused; std::vector<GpuMat> unused;
bool isDeviceArch11_; bool isDeviceArch11_;
}; };
......
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