Ask Your Question
0

How are the binary descriptors generated in OpenCV?

asked Jun 23 '0

paul_shuvo gravatar image

I have been working with the binary descriptors that are implemented in OpenCV. But the descriptors are formed with integer values (shown in red rectangle).

Why are they formed with integer values?

enter image description here

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Jun 23 '0

Kafan gravatar image

Say you have Orb binary descriptor which is 256 bit long. Then the bits are broken down into 8 bits and are converted to their base10 numerical representation. So 256 bit will be represented by array of 32 integers, and all those integer's value will be between 0 to 255.

Preview: (hide)

Comments

So, during matching using cv2.NORM_HAMMING, are they converted into binary strings/values?

paul_shuvo gravatar imagepaul_shuvo (Jun 23 '0)edit
1

converted to their base10 numerical representation.

no, that's wrong, there is no conversion. it's just plain consecutive memory, 256 bits will fit into 32 uchar bytes, that's what you see above

berak gravatar imageberak (Jun 23 '0)edit

Question Tools

1 follower

Stats

Asked: Jun 23 '0

Seen: 292 times

Last updated: Jun 22 '20