I've tried using Histogram Comparison for images comparison. However, it doesn't seems to provide me with good result. For your information:
-Application: visual inspection for any defects on a specific object.
-Test image (static): captured through fixed camera which may result with different contrast & brightness.
-Condition: Check for defects but not lightening issue.
As I know, histogram comparison is rather contrast & brightness sensitive. Also, I've gone through feature detection such as SURF and a very shallow way only. SURF is rather robust but it do not return me with qualitative data, such as percentage of similarity between two images. I need a threshold in order to know whether the "mismatch" is contrast & brightness issue or is the real defects.
Any suggestion or example? Is that possible for me to continue sticking with histogram comparison? Maybe perform histogram equalization will help?