I think comparing edges only may be the key (excellent link, JoshuaD). The edges should capture the features of the coins being compared. Simply comparing images will not work - here's why.


The actual (raised) features of the coin - a capital "I" followed by a capital "T".
++++++++++++++++++++ ++++++++++++++++++++ ++######++++######++ ++++##++++++++##++++ ++++##++++++++##++++ ++++##++++++++##++++ ++######++++++##++++ ++++++++++++++++++++ ++++++++++++++++++++

Here's how the coin would photograph lit from the lower left. Legend: "+" for the metal's "normal" color, "_" for highlights, and "#" for shadows.
++++++++++++++++++++ ++######++++######++ +_++++++#++_++++++#+ ++__++__++++__++__++ +++_++#++++++_++#+++ ++##++##+++++_++#+++ +_++++++#++++_++#+++ ++______++++++__++++ ++++++++++++++++++++

Here's how the coin would photograph lit from the lower right.
++++++++++++++++++++ ++######++++######++ +#++++++_++#++++++_+ ++__++__++++__++__++ +++#++_++++++#++_+++ ++##++##+++++#++_+++ +#++++++_++++#++_+++ ++______++++++__++++ ++++++++++++++++++++

And here's how it would photograph lit dead on.
____________________ __######____######__ _#______#__#______#_ __##__##____##__##__ ___#__#______#__#___ __##__##_____#__#___ _#______#____#__#___ __######______##____ ____________________

The edges for all three images would (I think) all look like the last image.

In reply to Re: Re: comparing two images and detecting differences by bean
in thread comparing two images and detecting differences by moof1138

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.