Error KAZE OpenCV 3.1.0
I tried to compile a function for extracting the features. Ptr<Feature2d> kaze = KAZE::create();
But I get an errors with that. First is "Use of undeclared identifier 'KAZE'"
The next line is kaze->detectAndCompute(img, noArray(), keypoints, descriptors);
. There it is said: "No member named 'detectAndCompute' in 'cv::Feature2D'".
I have included the header #include <opencv2/features2d/features2d.hpp>
and I also linked the libs. I tried to use AKAZA instead, but I got the same error. I don't know what is wrong.
It should exist. Are you sure to use opencv 3.1? If you download from github do you update your folder? In this sample it works.
which is your platform and compiler
Thank you for your answer. Yes I am sure, but I have tried it for 2.4 also after changing a little bit the code. I get the same error :/ I use it with Xcode 7
Have you try my answer? if yes and you have got still an error can you compile examples in opencv/samples (using cmake)
btw, it's Feature2D not Feature2d
and no, 2.4 neither has KAZE nor AKAZE