1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #ifndef __D_T_FCLASS__
- #define __D_T_FCLASS__
- #include <opencv2/core/core.hpp>
- #include <vector>
- #include <string>
- namespace DBoW2 {
- class FClass
- {
- class TDescriptor;
- typedef const TDescriptor *pDescriptor;
-
-
- virtual void meanValue(const std::vector<pDescriptor> &descriptors,
- TDescriptor &mean) = 0;
-
-
- static double distance(const TDescriptor &a, const TDescriptor &b);
-
-
- static std::string toString(const TDescriptor &a);
-
-
- static void fromString(TDescriptor &a, const std::string &s);
-
- static void toMat32F(const std::vector<TDescriptor> &descriptors,
- cv::Mat &mat);
- };
- }
- #endif
|