I am converting digits.py into a c++ sample from OpenCV. Digits.py is found under the python2 samples folder. It is an application that uses SVMs to recognize characters.
During a preprocessing step, HOG (histogram of gradients is calculated). In order to do this with C++ it is more convenient to use cv::HOGDescriptor::compute() to get a HOG value for each image bin.
Line 126.
In python, they use the Hellinger Kernel that improves sample discrimination. However, i cannot see this occurring in HOG.cpp under compute().
How do we apply this to a cv::Mat recovered from cv::HOGDescriptor.compute?