Ask Your Question
0

Is there a create for features in OpenCV 3?

asked 2015-01-05 03:58:10 -0600

thdrksdfthmn gravatar image

I have tryed to change from openCV 2.4.9 to OpenCV 3.0.0 and when i have arrived at the features detection, descriptors extractor and matcher I have met some problems. In the 2.4.9 there are some static functions, create, that return some cv::Ptr of wanted types; and in the 3.0.0 version there are no such functions. It is true that OpenCV 3.0.0 is in beta version and I want to ask if the release version of 3.0.0 will contain the create functions for detection and extraction? I am asking this, because I can wait until the 3.0.0 is released, but if the release version is not going to contain the create functions like in the 2.4.9, I will code some function that will do the work.

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-01-05 04:23:09 -0600

berak gravatar image
  • as of 3.0, you can no more use the Algorithm::create(name) method, that's gone.
  • each detector/extractor class has it's own static create() method, like Ptr<ORB> orb = ORB::create();
  • SIFT and SURF were moved to the opencv_contrib repo , also have an additional namespace: `Ptr<xfeatures2d::SIFT> sift = xfeatures2d::SIFT::create();
edit flag offensive delete link more

Comments

Yes, I have seen that, but are the devs going to add the create for the general FeatureDetector and improve the incomplete one for DescriptrsExtractor::create; see the docs?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-01-05 04:33:10 -0600 )edit

ok. sorry, partly misread your question then.

i can only guess, but since the underlying functionality is gone, i bet, that DescriptorExtractor::create(name) will vanish, too.

(it does not even work for "ORB" or "BRISK" here any more, compile error)

berak gravatar imageberak ( 2015-01-05 04:46:40 -0600 )edit
2

I have not seen pyramid detector anymore... and neighter opponent descriptors extractors... I hope that they will add all missing things and also the create for the FeatureDetector and merging the two repos together...

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-01-05 06:08:53 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-01-05 03:58:10 -0600

Seen: 2,268 times

Last updated: Jan 05 '15