Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8094433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:47:57+00:00 2026-06-05T20:47:57+00:00

In recent versions, OpenCV allows easy creation of keypoint detectors, descriptors or matchers using

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:47:59+00:00Added an answer on June 5, 2026 at 8:47 pm

    Actually as it turns out, featureDetector already is an Algorithm object, i.e. you can simply set parameters on it directly, e.g.

    featureDetector->set("someParam", someValue)
    

    If you want to know about the parameters of a feature detector, you can use this function which prints them for you:

    void ClassificationUtilities::printParams( cv::Algorithm* algorithm ) {
        std::vector<std::string> parameters;
        algorithm->getParams(parameters);
    
        for (int i = 0; i < (int) parameters.size(); i++) {
            std::string param = parameters[i];
            int type = algorithm->paramType(param);
            std::string helpText = algorithm->paramHelp(param);
            std::string typeText;
    
            switch (type) {
            case cv::Param::BOOLEAN:
                typeText = "bool";
                break;
            case cv::Param::INT:
                typeText = "int";
                break;
            case cv::Param::REAL:
                typeText = "real (double)";
                break;
            case cv::Param::STRING:
                typeText = "string";
                break;
            case cv::Param::MAT:
                typeText = "Mat";
                break;
            case cv::Param::ALGORITHM:
                typeText = "Algorithm";
                break;
            case cv::Param::MAT_VECTOR:
                typeText = "Mat vector";
                break;
            }
            std::cout << "Parameter '" << param << "' type=" << typeText << " help=" << helpText << std::endl;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The move in recent versions of Python to passing a key function to sort()
I'm using the most recent versions of all software (Django, Python, virtualenv, MySQLdb) and
Using CMake I want to check if a particular function (cv::getGaborKernel) from OpenCV library
I am using git bundle to back up git repositories. In recent versions of
In recent versions of python, one can use something like with open('abc.txt') as f:
In most of recent versions of Windows (XP, Vista, 7) it is possible to
I'm trying to find any research/academic/journal papers/articles that analyze recent versions of Qt and
I am using the most recent version of GHC distributed with Ubuntu 11.10 (7.0.3).
In recent versions of Safari, there is a Reader button that appears in the
I read that oracle's CBO(on recent versions) is so good that even if worst

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.