put an akaze binary descriptor into some DB

asked 2015-12-01 11:09:33 -0600

goran gravatar image

Hi all, i wanna store a descriptor which is computed by akaze->compute(grey, kpts, desc); into some DB. For that purpose I would need the binary descriptor in some other format than cv::Mat desc;. I would prefer some enum or bool container like std::vector<bool>. How can I get the values out of desc??

edit retag flag offensive close merge delete

Comments

1

careful ! if you're using DESCRIPTOR_KAZE, you'll get CV_64F features.

also, even if you're using CV_8U fatures, a vector<bool> is the wrong container to store them (there's no guarantee, that it will use uchar elements)

berak gravatar imageberak ( 2015-12-02 01:42:40 -0600 )edit