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 4049928
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:00:24+00:00 2026-05-20T14:00:24+00:00

I couldnt find proper references about how to pass the SVM parameters to the

  • 0

I couldnt find proper references about how to pass the SVM parameters to the opencv cvSvm class. I got the parameter list, but not any tutorial on how to convert the parameters to the CV data structures.

Can I have some help please?

  • 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-05-20T14:00:25+00:00Added an answer on May 20, 2026 at 2:00 pm

    Construct a CvSVMParams object.

    Its members are:

    • svm_type: SVM algorithm to use
    • kernel_type: SVM kernel form
    • degree: Degree for polynomial kernel
    • gamma: Scale for polynomial, RBF or sigmoid kernel
    • coef0: Offset for polynomial or sigmoid kernel
    • C: C ratio for selecting support vectors
    • nu: nu value for nu-SVR algorithm
    • p: p value for eps-SVR
    • class_weights: Class weights for C-SVM
    • term_crit: Termination criteria in CvTermCriteria

    Change appropriate fields and pass it to CvSVM constructor. An SVM will be trained with your parameters.

    CvSVMParams params ;
    params.svm_type = CvSVM::C_SVC ;
    params.kernel_type = CvSVM::RBF ;
    params.gamma = 0.5 ;
    CvSVM svm(&samples, &labels, 0, 0, params) ;
    

    See documentation of CvSVM for more information:
    http://opencv.willowgarage.com/documentation/cpp/support_vector_machines.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried looking this up on here but couldnt find a proper answer. I
I read a few threads about the MainWindowHandle but i couldnt find a solution
I have read the PHP manual , but couldn't find any proper explanation regarding
I googled for Drawing text on picturebox C# ,but I couldnt find anything useful.Then
sorry, i know this lots on this topic, but i couldnt find one where
I've searched a lot but I couldn't find the proper answer to my question
I know this questions are already asked.But i couldn't find any proper answer for
I have some problem about operator overloading. I looked everywhere but couldn't find a
This is mot likely a duplicate, but I couldn't find a proper question. I
I believe that I couldn't find a proper title to explain my problem but

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.