I am trying for object detection in Java. I initially starting by comparing two images to find similarity between two images by 1) comparing images pixel by pixel by using img.getRGB(x,y) method of BufferedImage in java this gave me almost 40% of similarity for almost 95% similar images(i.e by looking at images).
2) So i converted both images in gray scale and again compared them which gave me a result of 70% similarity which is still very less as compared to original images.
So can you suggest any algorithm for comparison?
I think results are wrong because little bit change in color or a simple shifting of pixels can not be detected in this pixel to pixel comparison?
Please correct me if i am wrong.
Thanks in advance.