Ask Your Question

rednaks's profile - activity

2015-04-16 12:20:09 -0600 received badge  Popular Question (source)
2014-05-06 16:17:25 -0600 commented question ORB not detecting any keypoint

I'm not sure, but I think that the "issue" was introduced since 2.4.0, if it's a bug, that would be really weird that no one noticed that ...

2014-05-04 05:47:54 -0600 commented question ORB not detecting any keypoint

Oh thank you, I didn't notice that, I'll host them somewhere elese.

2014-05-04 04:21:09 -0600 received badge  Student (source)
2014-05-04 04:15:18 -0600 commented question ORB not detecting any keypoint

@break yes, it's me. I posted here because I don't really know if it's a bug or something else.

2014-05-04 03:34:38 -0600 asked a question ORB not detecting any keypoint

I'm trying to detect keypoints with ORB everything is fine until I switched to Opencv 2.4.9.

Firts, it seems that the number of keys decresed, and for some images, no keypoints are detected :

This is my code compiled with two version : (2.3.1, 2.4.8 and 2.4.9)

#include <iostream>
#include <opencv2/opencv.hpp>
#include <opencv2/features2d/features2d.hpp>


using namespace cv;


int main(int argc, char **argv){

  Mat img = imread(argv[1]);

  std::vector<KeyPoint> kp;

  OrbFeatureDetector detector;
  detector.detect(img, kp);
  std::cout << "Found " << kp.size() << " Keypoints " << std::endl;

  Mat out;
  drawKeypoints(img, kp, out, Scalar::all(255));

  imshow("Kpts", out);

  waitKey(0);
  return 0;
}

Result : 2.3.1 : Found 152 Keypoints

kp detected

2.4.9 and 2.4.8 : Found 0 Keypoints

zero kpts

I also tested with a different ORB Constructor, but I get the same result, no KPts. The same constuctor values as in 2.3.1 default's constructor : 2.4.9 (2.4.8) custom constr :

#include <iostream>
#include <opencv2/opencv.hpp>
#include <opencv2/features2d/features2d.hpp>


using namespace cv;


int main(int argc, char **argv){

  Mat img = imread(argv[1]);

  std::vector<KeyPoint> kp;

  // default in 2.4.9 is : ORB(700, 1.2f, 3, 31, 0);
  OrbFeatureDetector detector(500, 1.2f, 8, 31, 0); // default values of 2.3.1
  detector.detect(img, kp);
  std::cout << "Found " << kp.size() << " Keypoints " << std::endl;
  Mat out;
  drawKeypoints(img, kp, out, Scalar::all(255));

  imshow("Kpts", out);

  waitKey(0);
  return 0;
}

Do you have any idea what's happening ? And how can I fix it ?

Thank you.

2013-07-28 06:07:27 -0600 commented question nonfree features2D headers

@Stev Well, I'm planning to distribute the code source (propably github) and now the default package in ubuntu, debian and fedora are using that older version, so I'm trying to make something that could work for every one

2013-07-28 05:20:40 -0600 commented question nonfree features2D headers

@V I'm using opencv 2.3.1-7, is there any MACRO for opencv version ?

2013-07-27 05:13:52 -0600 commented question nonfree features2D headers

Yes I'm talking about nonfree module, my app is using SURF and SIFT.

2013-07-26 20:16:14 -0600 received badge  Editor (source)
2013-07-26 20:09:48 -0600 asked a question nonfree features2D headers

Hello, we are a team working with diffrent dev environment, most are using Windows, I'm in charge of the intergration of the app and I'm under ubuntu 12.04, and it seems that there is a problem with the nonfree features2D headers. On windows it's located at opencv2/nonfree/features2d.hpp but in ubuntu it's in diffrent location
opencv2/features2d/features2d.hpp

So I'm wondering, does all linux distributions are like ubuntu ? so that I can use opereting system macro to add or not specific headers. PS: I've tried to build opencv2 from sources and the result was like in windows. How can you advice me to make it possible for cross build ?

Thanks