An another improvement?
This commit is contained in:
parent
26d7da68fc
commit
16e20e5c73
@ -103,6 +103,12 @@ int main(int argc, char *argv[])
|
||||
cout << "It's strange. You should use Hamming distance only for a binary descriptor\n";
|
||||
cout << "**************************************************************************\n";
|
||||
}
|
||||
if ((*itMatcher == "BruteForce" || *itMatcher == "BruteForce-L1") && (b->defaultNorm() >= NORM_HAMMING))
|
||||
{
|
||||
cout << "**************************************************************************\n";
|
||||
cout << "It's strange. You shouldn't use L1 or L2 distance for a binary descriptor\n";
|
||||
cout << "**************************************************************************\n";
|
||||
}
|
||||
try
|
||||
{
|
||||
descriptorMatcher->match(descImg1, descImg2, matches, Mat());
|
||||
|
Loading…
x
Reference in New Issue
Block a user