Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You should create matcher with NORM_HAMMING parameter

BFMatcher matcher(NORM_HAMMING);

Hamming is a type name, so compiler thinks that

BFMatcher matcher(Hamming);

is a function declaration. The function has one parameter with Hamming type and returns BFMatcher object.