ORB: compute default norm by wta_k

pull/12881/head
huangqinjin 6 years ago
parent d8ffddd075
commit 1fbaa48cec
  1. 11
      modules/features2d/src/orb.cpp

@ -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

Loading…
Cancel
Save