Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What's the Java equivalent of C++ enum NORM_HAMMING=6 (core.hpp)

I'm using the constant DescriptorMatcher.BRUTEFORCE_HAMMING but now I'm not sure because it has a different value in C++ (I think). DescriptorMatcher.BRUTEFORCE_HAMMING = 4 (Java) while NORM_HAMMING = 6 (C++). Are they the same? Where can I find constant/enum equivalences? I'm trying to create a brute force matcher like this:

matcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_HAMMING); // should it be BRUTEFORCE_SL2 instead because of value = 6 ??

for this C++ code:

BFMatcher matcher(NORM_HAMMING, true);

What constant should I use?

Thanks!

What's the Java equivalent of C++ enum NORM_HAMMING=6 (core.hpp)of BFMatcher matcher(NORM_HAMMING, true) ?

I'm using What is the constant DescriptorMatcher.BRUTEFORCE_HAMMING but now I'm not sure because it has a different value in C++ (I think). DescriptorMatcher.BRUTEFORCE_HAMMING = 4 (Java) while NORM_HAMMING = 6 (C++). Are they the same? Where can I find constant/enum equivalences? I'm trying to create a brute force matcher like this:

matcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_HAMMING); // should it be BRUTEFORCE_SL2 instead because of value = 6 ??

for this C++ code:Java equivalent of:

BFMatcher matcher(NORM_HAMMING, true);

What constant should I use?OpenCV 2.4.4

Thanks!