convert bitset descriptor -> cv::Mat
参考https://blog.csdn.net/magicyang87/article/details/7246771 1.bitset转opencv cv::Mat 注意 (1)Mat 的列为32列,类型为uchar (2)BRIEF::bitset 的长度为256 (3)每8个构成一个uchar 这个测试ok vector < BRIEF :: bitset > temp_brief_descriptors ; extractor ( image , keypoints , temp_brief_descriptors ) ; brief_descriptors_mat = Mat :: zeros ( brief_descriptors . size ( ) , 32 , CV_8UC1 ) ; int row = 0 ; for ( iter = temp_brief_descriptors . begin ( ) ; iter != temp_brief_descriptors . end ( ) ; iter ++ ) { BRIEF :: bitset bits = * iter ; for ( int i = 0 ; i < 32 ; i + = 8 ) { char ch ; for ( int j = 0 ; j < 8 ; ++ j ) { if ( bits