Fixed win64 compile warning
This commit is contained in:
parent
10639c9526
commit
cf0a29ce4d
@ -121,7 +121,7 @@ protected:
|
|||||||
for (vector<string>::const_iterator a = filenames.begin(); a != filenames.end(); ++a)
|
for (vector<string>::const_iterator a = filenames.begin(); a != filenames.end(); ++a)
|
||||||
{
|
{
|
||||||
// read current image
|
// read current image
|
||||||
int aIndex = a - filenames.begin();
|
int aIndex = (int)(a - filenames.begin());
|
||||||
Mat currentQuery = imread(*a, IMREAD_GRAYSCALE);
|
Mat currentQuery = imread(*a, IMREAD_GRAYSCALE);
|
||||||
Mat flippedHQuery, flippedVQuery;
|
Mat flippedHQuery, flippedVQuery;
|
||||||
flip(currentQuery, flippedHQuery, 0);
|
flip(currentQuery, flippedHQuery, 0);
|
||||||
@ -133,7 +133,7 @@ protected:
|
|||||||
// compare with all the rest of the images: testing
|
// compare with all the rest of the images: testing
|
||||||
for (vector<string>::const_iterator b = filenames.begin(); b != filenames.end(); ++b)
|
for (vector<string>::const_iterator b = filenames.begin(); b != filenames.end(); ++b)
|
||||||
{
|
{
|
||||||
int bIndex = b - filenames.begin();
|
int bIndex = (int)(b - filenames.begin());
|
||||||
float distance = 0;
|
float distance = 0;
|
||||||
// skip self-comparisson
|
// skip self-comparisson
|
||||||
if (a != b)
|
if (a != b)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user