Is there a better way to check if images are the same? I now use imagedata

Rick Harrison harrison at all-auctions.com
Wed Dec 29 11:41:02 EST 2021


Hi William,

If you could provide a link to a photo example of 
what you are doing that would help us to understand
the problem better.

There may be a way to simplify your process so you
don’t have to check every pixel.

Rick

> On Dec 29, 2021, at 4:57 AM, William de Smet via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi there,
> 
> Is there a better way to check if images are the same?
> I now use imagadata.
> 
> In my app I have an example drawn image (5x5 matrix with dots, a Geoboard).
> These dots are important because by touching them their Loc is used
> (gStartLoc and gStartLoc)
> Two dots will be connected by setting the points of the last grc to
> gStartLoc & return & gStartLoc.
> No problem here.
> 
> The idea is that the user copies my example on their matrix/geoboard by
> connecting the dots.
> To check if the made images (geoboards) are the same I make a snapshot of
> both and compare the imagadata of these images.
> Everything is fine as long as the user connects the same dots as the way
> (length between dots) it is done in the example.
> Then the imagadat is the same.
> 
> The geoboards can look the same but the connected dots can be different in
> length so use imagadata to compare these is not the way to get it right.
> 
> Any ideas for a better way?
> 
> 
> 
> greetings,
> 
> William
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list