Ask Your Question
1

Histogram intersection kernel type for SVM

asked 2014-07-09 12:53:19 -0600

REZA gravatar image

hi, do there are "Histogram Intersection" kernel type in opencv?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-07-11 06:35:43 -0600

updated 2014-07-11 06:37:12 -0600

It is dependent on the version of OpenCV you use. In 2.4.9 version (also 2.4.9.x-prep), the answer is no since the SVM part of the opencv_ml library only supports three kernel types: RBF, POLY and SIGMOID. But in the 3.0.0 version, OpenCV implements 5 kernel functions, the two additional ones are CHISQUARE (CHI2) and INTERSECTION (INTER) (see more at svm source). So if your wish is staying with 2.4.9 version, you have to do it yourself while no more effort is needed with version 3.0.0, but it is unstable at the moment. It would be better if there is an extra option to use user-defined kernel functions as in LibSVM.

edit flag offensive delete link more

Comments

how can i download 3.0.0 version? Because there aren't in this address: "http://opencv.org/downloads.html"

thanks for your answer.

REZA gravatar imageREZA ( 2014-07-12 08:57:12 -0600 )edit
1

Currently, for using OpenCV 3.0.0, you have to download its source code from https://github.com/Itseez/opencv and build it. The instructions for building OpenCV can be found in this forum or this link (http://karanjthakkar.wordpress.com/2012/11/21/usin-opencv-2-4-2-with-visual-studio-2012-on-windows-7-64-bit/).

tuannhtn gravatar imagetuannhtn ( 2014-07-12 09:26:45 -0600 )edit

Thanks....

REZA gravatar imageREZA ( 2014-07-12 20:04:55 -0600 )edit

Question Tools

Stats

Asked: 2014-07-09 12:53:19 -0600

Seen: 1,132 times

Last updated: Jul 11 '14