Skip to content

Commit 2e343ef

Browse files
authored
Merge pull request opencv#9102 from varunagrawal:2.4-vector
gpu.hpp vector scope fix
2 parents 3dedd62 + af3c544 commit 2e343ef

File tree

1 file changed

+19
-19
lines changed
  • modules/gpu/include/opencv2/gpu

1 file changed

+19
-19
lines changed

modules/gpu/include/opencv2/gpu/gpu.hpp

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -435,13 +435,13 @@ CV_EXPORTS void LUT(const GpuMat& src, const Mat& lut, GpuMat& dst, Stream& stre
435435
CV_EXPORTS void merge(const GpuMat* src, size_t n, GpuMat& dst, Stream& stream = Stream::Null());
436436

437437
//! makes multi-channel array out of several single-channel arrays
438-
CV_EXPORTS void merge(const vector<GpuMat>& src, GpuMat& dst, Stream& stream = Stream::Null());
438+
CV_EXPORTS void merge(const std::vector<GpuMat>& src, GpuMat& dst, Stream& stream = Stream::Null());
439439

440440
//! copies each plane of a multi-channel array to a dedicated array
441441
CV_EXPORTS void split(const GpuMat& src, GpuMat* dst, Stream& stream = Stream::Null());
442442

443443
//! copies each plane of a multi-channel array to a dedicated array
444-
CV_EXPORTS void split(const GpuMat& src, vector<GpuMat>& dst, Stream& stream = Stream::Null());
444+
CV_EXPORTS void split(const GpuMat& src, std::vector<GpuMat>& dst, Stream& stream = Stream::Null());
445445

446446
//! computes magnitude of complex (x(i).re, x(i).im) vector
447447
//! supports only CV_32FC2 type
@@ -1268,9 +1268,9 @@ class CV_EXPORTS DisparityBilateralFilter
12681268
struct CV_EXPORTS HOGConfidence
12691269
{
12701270
double scale;
1271-
vector<Point> locations;
1272-
vector<double> confidences;
1273-
vector<double> part_scores[4];
1271+
std::vector<Point> locations;
1272+
std::vector<double> confidences;
1273+
std::vector<double> part_scores[4];
12741274
};
12751275

12761276
struct CV_EXPORTS HOGDescriptor
@@ -1288,27 +1288,27 @@ struct CV_EXPORTS HOGDescriptor
12881288
size_t getDescriptorSize() const;
12891289
size_t getBlockHistogramSize() const;
12901290

1291-
void setSVMDetector(const vector<float>& detector);
1291+
void setSVMDetector(const std::vector<float>& detector);
12921292

1293-
static vector<float> getDefaultPeopleDetector();
1294-
static vector<float> getPeopleDetector48x96();
1295-
static vector<float> getPeopleDetector64x128();
1293+
static std::vector<float> getDefaultPeopleDetector();
1294+
static std::vector<float> getPeopleDetector48x96();
1295+
static std::vector<float> getPeopleDetector64x128();
12961296

1297-
void detect(const GpuMat& img, vector<Point>& found_locations,
1297+
void detect(const GpuMat& img, std::vector<Point>& found_locations,
12981298
double hit_threshold=0, Size win_stride=Size(),
12991299
Size padding=Size());
13001300

1301-
void detectMultiScale(const GpuMat& img, vector<Rect>& found_locations,
1301+
void detectMultiScale(const GpuMat& img, std::vector<Rect>& found_locations,
13021302
double hit_threshold=0, Size win_stride=Size(),
13031303
Size padding=Size(), double scale0=1.05,
13041304
int group_threshold=2);
13051305

1306-
void computeConfidence(const GpuMat& img, vector<Point>& hits, double hit_threshold,
1307-
Size win_stride, Size padding, vector<Point>& locations, vector<double>& confidences);
1306+
void computeConfidence(const GpuMat& img, std::vector<Point>& hits, double hit_threshold,
1307+
Size win_stride, Size padding, std::vector<Point>& locations, std::vector<double>& confidences);
13081308

1309-
void computeConfidenceMultiScale(const GpuMat& img, vector<Rect>& found_locations,
1309+
void computeConfidenceMultiScale(const GpuMat& img, std::vector<Rect>& found_locations,
13101310
double hit_threshold, Size win_stride, Size padding,
1311-
vector<HOGConfidence> &conf_out, int group_threshold);
1311+
std::vector<HOGConfidence> &conf_out, int group_threshold);
13121312

13131313
void getDescriptors(const GpuMat& img, Size win_stride,
13141314
GpuMat& descriptors,
@@ -1838,11 +1838,11 @@ class CV_EXPORTS PyrLKOpticalFlow
18381838

18391839
private:
18401840
GpuMat uPyr_[2];
1841-
vector<GpuMat> prevPyr_;
1842-
vector<GpuMat> nextPyr_;
1841+
std::vector<GpuMat> prevPyr_;
1842+
std::vector<GpuMat> nextPyr_;
18431843
GpuMat vPyr_[2];
1844-
vector<GpuMat> buf_;
1845-
vector<GpuMat> unused;
1844+
std::vector<GpuMat> buf_;
1845+
std::vector<GpuMat> unused;
18461846
bool isDeviceArch11_;
18471847
};
18481848

0 commit comments

Comments
 (0)