|Perl Monk, Perl Meditation|
Re^3: Can i Compare two images in perl ?by BrowserUk (Pope)
|on Jun 02, 2011 at 04:04 UTC||Need Help??|
That's interesting. But only 1/4 of the information required to tackle the problem.
Only one pair of images, and no reference as to you would rate them--are they 2% similar or 98% similar?
One problem is that the graphs have been produced using anti-aliasing. A process that trades accuracy for aesthetic appearance. Which means that if you try to subtract one image from another you get a big blurry streak of color: cluster1 - cluster8
With some more processing it should be possible to retrieve a single, contiguous line from those fat, fuzzy, discontinuous streaks. Albiet that it might take several passes to do so.
But the show stopper as far as achieving your single similarity figure is the lack of any indication of how to rate the two posted images for similarity.
It is obvious that if the two lines, once reduced to continuous, single pixel wide lines, exactly overlaid each other, that would constitute 100% similarity. But how do you rate divergence?
So then the problem is, what do you consider to be 0% similarity? (Which is why I asked for two pairs of images and associated ratings in the first place.)
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.