OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Wed, 05 Sep 2012 20:26:16 -0500Is it possible to use the chi-squared kernel for an SVM in OpenCV?http://answers.opencv.org/question/2112/is-it-possible-to-use-the-chi-squared-kernel-for-an-svm-in-opencv/I want to use an SVM with the chi-squared kernel for an application I am writing, but it doesn't appear obvious how I can apply this.
I define the kernel as `K(x_i, x_j) = exp( -1/A * D(x_i, x_j))`, where `A` is a scaling parameter I can choose, and `D(x_i, x_j)` is the chi-squared distance between them.
How can this be done? It is a commonly used kernel in the computer vision literature, so it would be surprising if it was not possible.
Wed, 05 Sep 2012 20:26:16 -0500http://answers.opencv.org/question/2112/is-it-possible-to-use-the-chi-squared-kernel-for-an-svm-in-opencv/