I've got 2 questions about opencv SiftDescriptorExtractor:
cv::Mat
to vector<float* >
(i-th row = i-th descriptor)Yeah, I know about OpenCV reference, however, I'm not able to get it working. Could someone put here minimum working example pls?
1-The conversion:
vector<float*> descriptor;
for(int i; i = 0; i < keypoints.size())
{
descriptor.push_back(&keypoints.at<float>(i));
}
2-Size of SIFT:
You can't as SIFT algorithm defines the size of the blocks, bins, etc. What can you do? You can code your own sift. This is a hard tack, but I encourage you to try it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With