Ask Your Question

Revision history [back]

How to get a binary string of a binary descriptor

Hello, I'm working with binary descriptors like ORB and AKAZE in opencv and want to store each descriptor (col of the descriptor mat) as binary string. To perform later the query, I want to save it as a array of integers, so I can easy compare binary string with hamming distance.

My problem is to extract the bit representation from the mat.

an ideas? thank you! :)

How to get a binary string representation of a binary descriptor

Hello, I'm working with binary descriptors like ORB and AKAZE in opencv and want to store each descriptor (col (a col of the descriptor mat) as binary string. To perform later the query, I want to save it these representation as a array of integers, integers (int = 32 bits and I have a 32 bit machine), so I can easy compare binary string with hamming distance.

My problem is to extract the bit representation from the mat.mat because the at has byte representation. Is there something that I must conside if want to extract the bits?

an ideas? thank you! :)