rmsalinas / fbow

FBOW (Fast Bag of Words) is an extremmely optimized version of the DBow2/DBow3 libraries.
559 stars 141 forks source link

How to use float descriptor? #35

Closed supengufo closed 3 years ago

supengufo commented 3 years ago

Hi! I have test your work,it's so great! Now i want to build a float descriptor vocabulary,but how can i set the data type to 'CV_32FC1' ?I have found the function 'void Vocabulary::setParams(int aligment, int k, int desc_type, int desc_size, int nblocks, std::string desc_name)',but it is a private function.

supengufo commented 3 years ago

i have know the method,if i want to use float descriptor,just define a cv::Mat as "cv::Mat descriptor_f(rows,cols,CV_32FC1)";