Reputation: 61
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?
Upvotes: 5
Views: 1665
Reputation: 22245
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.
Upvotes: 6
Reputation: 180
Upvotes: 1