> 1. How to find similarity of two images? (It doesn't have to be exact
> comparasion but at least the algorithm could find a percentage of the
> similarity.)
1. Tell me how do you *define* your similarity, I will tell you how to
find it.
The texture resynthesizers (a la Heeger) and MPEG compressors define
the similarity *VERY* differently.
Quote:> 2. How to build a histogram of an image? (URL to Algorithm / Source Code)
2. Split your colour space in bins.
Allocate and zero an array H, one element per bin.
foreach pixel in the image
if its colour belongs to the bin k, H(k)++.
If your image is trueColour, probably you should build one histogram
per colour component (On RGB, or YCrCb or any other space provided you
know what do you really want...)
If it is indexed, half of the work is done, but you should retrieve the
attached palette in order to see some sense in the histogram built.
Are you sure you ever tried to think about it yourself?
Quote:> 3. How to compare two histograms ?
3. What do you mean by "compare"? define it, I will tell you "how".
===
4. I detest unsigned, anonymous letters.
Jerzy Karczmarczuk