Is it possible to use the chi-squared kernel for an SVM in OpenCV?

asked 2012-09-05 20:26:16 -0600

phone gravatar image

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.

edit retag flag offensive close merge delete