question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BOWImgDescriptorExtractor.Compute -> Send KeyPoints

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
korhuncommented, Feb 24, 2017

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.

0reactions
shimatcommented, Feb 25, 2017

Please try this command.

PM> Install-Package OpenCvSharp3-AnyCPU -Source https://ci.appveyor.com/nuget/opencvsharp -IncludePrerelease
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found