Comparing images quantitatively using SVM to detect similarity