Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

i think, that's a nice idea !

the DescriptorMatcher classes expect a cv::Mat as input, so your struct won't do, but a vector<double> will be automatically converted to a cv::Mat.

Do I also need to implement a comparison function

no. but you should make sure, that your DescriptorMatcher is using the L2 distance, like:

BFMatcher(NORM_L2);

or

FlannBasedMatcher(); // kmeansindex by default, using L2

(only problem might be, that 6 numbers only are somewhat short. maybe you can look at a slightly larger area around your keypoint, split that up into smaller patches, compute features for those patches, and concatenate those)

good luck with it !