In recent versions, OpenCV allows easy creation of keypoint detectors, descriptors or matchers using the create function, e.g.
cv::Ptr<cv::FeatureDetector> featureDetector = cv::FeatureDetector::create("FAST")
This call does NOT support parameters. E.g. SURF, FAST, etc. all have many parameters.
How can I change them now? I already figured out parts of it, e.g. I can get the list (list of strings) of parameters via
std::vector<std::string> parameters;
featureDetector->getParams(parameters);
and apparently I need to get somehow to the cv::Algorithm* object to call set(char*, bool/int/float/... value)
, but I don't know how.