Ask Your Question
0

How are the binary descriptors generated in OpenCV?

asked 2020-06-22 19:23:54 -0600

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-06-22 20:17:22 -0600

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.

edit flag offensive delete link more

Comments

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

paul_shuvo gravatar imagepaul_shuvo ( 2020-06-22 20:39:52 -0600 )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 ( 2020-06-23 01:49:27 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-06-22 19:23:54 -0600

Seen: 265 times

Last updated: Jun 22 '20