Skip to content

Commit a5b7fba

Browse files
committed
warnings
1 parent 8603a1e commit a5b7fba

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

modules/ximgproc/samples/color_match_template.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,6 @@ static void UpdateThreshImage(int , void *r)
5353

5454
imshow("Max Quaternion corr",dst);
5555
}
56-
vector<Vec4d> LectureFichier(string s)
57-
{
58-
fstream f;
59-
vector<Vec4d> q;
60-
f.open(s, ios::in);
61-
int nbQuat;
62-
f >> nbQuat;
63-
f >> nbQuat;
64-
nbQuat = nbQuat * nbQuat;
65-
for (int i = 0; i < nbQuat; i++)
66-
{
67-
Vec4d v;
68-
f >> v[0] >> v[1] >> v[2] >> v[3];
69-
q.push_back(v);
70-
}
71-
return q;
72-
}
73-
74-
7556

7657
int main(int , char *[])
7758
{

modules/ximgproc/test/test_matchcolortemplate.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ TEST(ximpgroc_matchcolortemplate,test_QFFT)
2020
vector<int> flag = { 0,0,DFT_INVERSE,DFT_INVERSE };
2121
vector<bool> leftSize = {true,false,true,false};
2222
ximgproc::createQuaternionImage(img, img);
23-
for (int i=0;i<nodeName.size();i++)
23+
for (int i=0;i<static_cast<int>(nodeName.size());i++)
2424
{
2525
Mat test, dd;
2626
f[nodeName[i]] >> qTest;
@@ -35,7 +35,6 @@ TEST(ximpgroc_matchcolortemplate,test_QFFT)
3535
minMaxLoc(p, NULL, &maxVal, NULL, &pIdx);
3636
ASSERT_LE(p.at<double>(pIdx), 1e-5);
3737
}
38-
3938
}
4039
}
4140

@@ -57,9 +56,5 @@ TEST(ximpgroc_matchcolortemplate, test_COLORMATCHTEMPLATE)
5756
Point pIdx;
5857
minMaxLoc(dd, NULL, &maxVal, NULL, &pIdx);
5958
ASSERT_LE(maxVal, 1e-5);
60-
6159
}
62-
63-
64-
6560
}} // namespace

0 commit comments

Comments
 (0)