public static double Similarity(string path1, string path2) { ulong hash = ImageHashing.AverageHash(path1); ulong hash2 = ImageHashing.AverageHash(path2); return(ImageHashing.Similarity(hash, hash2)); }
public static double Similarity(Image image1, Image image2) { ulong hash = ImageHashing.AverageHash(image1); ulong hash2 = ImageHashing.AverageHash(image2); return(ImageHashing.Similarity(hash, hash2)); }