Dense Features in Opencv 3

asked 2015-05-05 10:30:14 -0600

In opencv 2, I used to do a dense feature detection with :-

detector = cv::Ptr<cv::featuredetector>(new cv::DenseFeatureDetector);

As far as I can fathom, this is gone from Opencv3, and can't find anything on the documentation. Is there a way to do it in Opencv3 or would I have to manually copy the function from OpenCV2? A quick code search on github for "dense features" only gives sparse results

Also, OCV3 does not have the

cv::FeatureDetector::create("bla")

function either, right?

I am trying to port my code to ocv3, and this is creating some issues

edit retag flag offensive close merge delete

Comments

It is no more possible to use in OpenCV 3.0 something like cv::FeatureDetector::create("bla") (link here and here):

Eduardo gravatar imageEduardo ( 2015-05-05 10:59:42 -0600 )edit

and the dense featuredetector is gone for good as well.

it was just generating a grid of keypoints - you can do that, too.

berak gravatar imageberak ( 2015-05-05 11:19:03 -0600 )edit
1

That way, I can build a lot of complex things with simple building blocks - that's not the point. Was there specific reason to remove it?

semicolonwarrior gravatar imagesemicolonwarrior ( 2015-05-06 03:36:39 -0600 )edit

"Was there specific reason to remove it?" - i do not know. best guess it's due to general refactoring of the features2d module (removal of Algorithm::create(string), sift,surf went into contrib and such)

berak gravatar imageberak ( 2015-05-06 03:43:17 -0600 )edit

This may help http://answers.opencv.org/question/73165/compute-dense-sift-features-in-opencv-30/?answer=73178#post-id-73178 (http://answers.opencv.org/question/73...)

Manoj gravatar imageManoj ( 2017-02-06 10:36:54 -0600 )edit