2612
|
1 |
--- OpenCV-2.1.0.orig/apps/haartraining/haartraining.cpp 2010-04-05 21:24:37.000000000 -0400
|
|
2 |
+++ OpenCV-2.1.0/apps/haartraining/haartraining.cpp 2010-05-08 19:58:09.745732726 -0400
|
|
3 |
@@ -49,6 +49,8 @@
|
|
4 |
#include <cstring>
|
|
5 |
#include <cstdlib>
|
|
6 |
|
|
7 |
+using namespace std;
|
|
8 |
+
|
|
9 |
#include "cvhaartraining.h"
|
|
10 |
|
|
11 |
int main( int argc, char* argv[] )
|
|
12 |
--- OpenCV-2.1.0.orig/apps/haartraining/createsamples.cpp 2010-04-05 21:24:37.000000000 -0400
|
|
13 |
+++ OpenCV-2.1.0/apps/haartraining/createsamples.cpp 2010-05-08 19:57:49.338532274 -0400
|
|
14 |
@@ -50,6 +50,8 @@
|
|
15 |
#include <cstdlib>
|
|
16 |
#include <cmath>
|
|
17 |
|
|
18 |
+using namespace std;
|
|
19 |
+
|
|
20 |
#include "cvhaartraining.h"
|
|
21 |
|
|
22 |
int main( int argc, char* argv[] )
|
|
23 |
--- OpenCV-2.1.0.orig/src/cvaux/cvcalonder.cpp 2010-05-08 18:38:19.712059032 -0400
|
|
24 |
+++ OpenCV-2.1.0/src/cvaux/cvcalonder.cpp 2010-05-08 18:38:31.008683767 -0400
|
|
25 |
@@ -264,7 +264,7 @@
|
|
26 |
assert(n>0);
|
|
27 |
assert(p>=0 && p<=1);
|
|
28 |
std::vector<float> vec(data, data+n);
|
|
29 |
- sort(vec.begin(), vec.end());
|
|
30 |
+ std::sort(vec.begin(), vec.end());
|
|
31 |
int ix = (int)(p*(n-1));
|
|
32 |
return vec[ix];
|
|
33 |
}
|
|
34 |
--- OpenCV-2.1.0.orig/src/cv/_cvkdtree.hpp 2010-04-05 21:24:42.000000000 -0400
|
|
35 |
+++ OpenCV-2.1.0/src/cv/_cvkdtree.hpp 2010-05-08 17:41:49.254954968 -0400
|
|
36 |
@@ -337,7 +337,7 @@
|
|
37 |
|
|
38 |
// add bbf_node for alternate branch in priority queue
|
|
39 |
pq.push_back(bbf_node(alt_n, dist));
|
|
40 |
- push_heap(pq.begin(), pq.end());
|
|
41 |
+ std::push_heap(pq.begin(), pq.end());
|
|
42 |
}
|
|
43 |
|
|
44 |
// called by bbf to walk to leaf;
|
|
45 |
@@ -374,11 +374,11 @@
|
|
46 |
bbf_nn nn(p, distance(d, p));
|
|
47 |
if ((int) nn_pq.size() < k) {
|
|
48 |
nn_pq.push_back(nn);
|
|
49 |
- push_heap(nn_pq.begin(), nn_pq.end());
|
|
50 |
+ std::push_heap(nn_pq.begin(), nn_pq.end());
|
|
51 |
} else if (nn_pq[0].dist > nn.dist) {
|
|
52 |
- pop_heap(nn_pq.begin(), nn_pq.end());
|
|
53 |
+ std::pop_heap(nn_pq.begin(), nn_pq.end());
|
|
54 |
nn_pq.end()[-1] = nn;
|
|
55 |
- push_heap(nn_pq.begin(), nn_pq.end());
|
|
56 |
+ std::push_heap(nn_pq.begin(), nn_pq.end());
|
|
57 |
}
|
|
58 |
assert(nn_pq.size() < 2 || nn_pq[0].dist >= nn_pq[1].dist);
|
|
59 |
}
|
|
60 |
@@ -405,7 +405,7 @@
|
|
61 |
while (tmp_pq.size() && emax > 0) {
|
|
62 |
|
|
63 |
// from node nearest query point d, run to leaf
|
|
64 |
- pop_heap(tmp_pq.begin(), tmp_pq.end());
|
|
65 |
+ std::pop_heap(tmp_pq.begin(), tmp_pq.end());
|
|
66 |
bbf_node bbf(tmp_pq.end()[-1]);
|
|
67 |
tmp_pq.erase(tmp_pq.end() - 1);
|
|
68 |
|
|
69 |
--- OpenCV-2.1.0.orig/tests/cxts/cxts.cpp 2010-04-05 21:24:46.000000000 -0400
|
|
70 |
+++ OpenCV-2.1.0/tests/cxts/cxts.cpp 2010-05-08 20:05:57.629712690 -0400
|
|
71 |
@@ -886,8 +886,8 @@
|
|
72 |
break;
|
|
73 |
}
|
|
74 |
|
|
75 |
- sort(v_cpe.begin(), v_cpe.end());
|
|
76 |
- sort(v_time.begin(), v_time.end());
|
|
77 |
+ std::sort(v_cpe.begin(), v_cpe.end());
|
|
78 |
+ std::sort(v_time.begin(), v_time.end());
|
|
79 |
|
|
80 |
t_cpu_acc = v_cpe[i/2];
|
|
81 |
t_acc = v_time[i/2];
|
|
82 |
--- OpenCV-2.1.0.orig/tests/cv/src/acameracalibration.cpp 2010-04-05 21:24:45.000000000 -0400
|
|
83 |
+++ OpenCV-2.1.0/tests/cv/src/acameracalibration.cpp 2010-05-08 20:11:29.151324867 -0400
|
|
84 |
@@ -1610,9 +1610,9 @@
|
|
85 |
{
|
|
86 |
ni = objectPoints[i].size();
|
|
87 |
((int*)npoints.data)[i] = ni;
|
|
88 |
- copy(objectPoints[i].begin(), objectPoints[i].end(), objPtData + j);
|
|
89 |
- copy(imagePoints1[i].begin(), imagePoints1[i].end(), imgPtData + j);
|
|
90 |
- copy(imagePoints2[i].begin(), imagePoints2[i].end(), imgPtData2 + j);
|
|
91 |
+ std::copy(objectPoints[i].begin(), objectPoints[i].end(), objPtData + j);
|
|
92 |
+ std::copy(imagePoints1[i].begin(), imagePoints1[i].end(), imgPtData + j);
|
|
93 |
+ std::copy(imagePoints2[i].begin(), imagePoints2[i].end(), imgPtData2 + j);
|
|
94 |
}
|
|
95 |
CvMat _objPt = objPt, _imgPt = imgPt, _imgPt2 = imgPt2, _npoints = npoints;
|
|
96 |
CvMat _cameraMatrix1 = cameraMatrix1, _distCoeffs1 = distCoeffs1;
|
|
97 |
--- OpenCV-2.1.0.orig/tests/cxcore/src/asolvepoly.cpp 2010-04-05 21:24:46.000000000 -0400
|
|
98 |
+++ OpenCV-2.1.0/tests/cxcore/src/asolvepoly.cpp 2010-05-09 00:01:40.991381047 -0400
|
|
99 |
@@ -98,8 +98,8 @@
|
|
100 |
for (int j = 0; j < n; ++j)
|
|
101 |
ar[j] = complex_type(u[j * 2], u[j * 2 + 1]);
|
|
102 |
|
|
103 |
- sort(r.begin(), r.end(), pred_complex());
|
|
104 |
- sort(ar.begin(), ar.end(), pred_complex());
|
|
105 |
+ std::sort(r.begin(), r.end(), pred_complex());
|
|
106 |
+ std::sort(ar.begin(), ar.end(), pred_complex());
|
|
107 |
|
|
108 |
pass = true;
|
|
109 |
if( n == 3 )
|
|
110 |
@@ -114,7 +114,7 @@
|
|
111 |
nr2 = cv::solveCubic(cv::Mat_<float>(cv::Mat(&amat)), umat2);
|
|
112 |
cvFlip(&amat, &amat, 0);
|
|
113 |
if(nr2 > 0)
|
|
114 |
- sort(ar2.begin(), ar2.begin()+nr2, pred_double());
|
|
115 |
+ std::sort(ar2.begin(), ar2.begin()+nr2, pred_double());
|
|
116 |
ar2.resize(nr2);
|
|
117 |
|
|
118 |
int nr1 = 0;
|