Commit 9a12aa45 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #12881 from huangqinjin:orb

parents 2c029aae 1fbaa48c
......@@ -724,7 +724,16 @@ int ORB_Impl::descriptorType() const
int ORB_Impl::defaultNorm() const
{
return NORM_HAMMING;
switch (wta_k)
{
case 2:
return NORM_HAMMING;
case 3:
case 4:
return NORM_HAMMING2;
default:
return -1;
}
}
#ifdef HAVE_OPENCL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment