Histogram intersection kernel type for SVM
hi, do there are "Histogram Intersection" kernel type in opencv?
hi, do there are "Histogram Intersection" kernel type in opencv?
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.
how can i download 3.0.0 version? Because there aren't in this address: "http://opencv.org/downloads.html"
thanks for your answer.
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/).
Asked: 2014-07-09 12:53:19 -0600
Seen: 1,134 times
Last updated: Jul 11 '14
Question regarding feeding extracted HoG features into CvSVM's train
Get a probability out of svm->predict
More questions on feeding HoG features to CvSVM
Why haar features often used with AdaBoost?
Is it possible to use the chi-squared kernel for an SVM in OpenCV?
Training of SVM classifier in OpenCV using HOG, SIFT and ORB features