Wrong Hamming norm value between two ORB descriptors
I'm currently working on feature point tracking and I want to compare the ORB descriptor of the current point with the previous one. I want to discard that point if the hamming distance between the two descriptors is higher than a specific threshold.
When I'm running hamm_dist = norm(pointDescr1, pointDescr2, NORM_HAMMING)
, the returned value sometimes is greater than 32 and I can't understand why. I was thinking it should be between 0 and 32.
Please let me know if you have an explanation. Thank you in advance.
Hamming distance is bits that differ. You may be mistaking 32 bytes for 32 bits.
Thank you for your answer. Yes, you're right. That means the range of the Hamming distance between two ORB descriptors is [0,256], right?