BOWImgDescriptorExtractor.Compute -> Send KeyPoints
See original GitHub issueI hope this is not a silly request but, I have a feeling that there is something wrong with the definition of BOWImgDescriptorExtractor.Compute method. KeyPoints are defined as out. How will we send the key points then? In EMGU it is not defined like that.
I could not able to get a result with the Compute method. The descriptor output is always empty:
DescriptorMatcher matcher = new FlannBasedMatcher();//nearest neighbor matcher
BOWImgDescriptorExtractor bowDE = new BOWImgDescriptorExtractor(featureDetector, matcher);
bowDE.SetVocabulary(this.Vocabulary);
Mat samples; Mat responses;
SVMHelper.GetTrainingData(class_mats, out samples, out responses, (mat) =>
{
Mat desc0 = new Mat();
KeyPoint[] kp = featureDetector.Detect(mat, null);
int[][] pnts;
bowDE.Compute(mat, out kp, desc0, out pnts);
//bowDE.Compute(mat, desc0, out pnts);
//bowDE.Compute2(mat, out kp, desc0);
return desc0;
}, null);
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
c++ - Re-using descriptors with BOWImgDescriptorExtractor
The problem I have, is that I have already computed the descriptors for the images at the point I call BowImgDescriptorExtractor::compute , and ......
Read more >Question#2 about BOWImgDescriptorExtractor · Issue #312
1. Compute descriptors for a given image and its keypoints set. 2. Find the nearest visual words from the vocabulary for each keypoint...
Read more >cv::BOWImgDescriptorExtractor Class Reference
Compute descriptors for a given image and its keypoints set. Find the nearest visual words from the vocabulary for each keypoint descriptor.
Read more >cv.BOWImgDescriptorExtractor - mexopencv
Compute descriptors for a given image and its keypoints set. Find the nearest visual words from the vocabulary for each keypoint descriptor.
Read more >Bag-of-Features Descriptor on SIFT Features with OpenCV ...
An implementation of Bag-Of-Feature descriptor based on SIFT features using OpenCV and C++ for content based image retrieval applications.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Shimat thank you very much for spending your valuable time for my questions. But I couldn’t manage to update with this link. I am using Visual Studio 2015, and update using Package Manager Console (Install-Package OpenCvSharp3-AnyCPU -Version 3.2.0.20170126 for example) I coun’t find how to update with https://ci.appveyor.com/nuget/opencvsharp
BTW: I am very happy with using OpenCVSharp. Thank to everyone that is involved on this great project.
Please try this command.