# Compare feature vectors of an image in MATLAB

I am working on OCR. I have extracted features of 26 alphabets, and I want to compare them with an experimental character feature.

I have tried using Euclidean distance and correlation functions, but I am not getting good efficiency. What are some alternate methods for the same?

• When the euclidian distance fails, the next reasonable one is the Mahalanobis distance. It normalizes the euclidian distance in each dimension by the dispersion of the data (of the variable under test) for that dimension. In the most complete version of the Mahalanobis distance, the cross correlation among dimensions are also taken. The concept is simple, and the results might adequate for you. In addition, you might want to reduce the dimensionality of your data using PCA, or kernel-PCA. Please share your results, if any. Jan 2 '17 at 19:35

If you just need OCR to work, then please try the ocr function in the Computer Vision System Toolbox.