Re: comparing images...
From: Justin Rogers (Justin_at_games4dotnet.com)
Date: 03/15/04
- Next message: Andrew S \(Infragistics\): "Re: Graphics.ScaleTransform vs. Graphics.Transform.Scale"
- Previous message: Me: "Re: System.InvalidCastException for Bitmap Constructor -- Please help!!!!"
- In reply to: Franz: "Re: comparing images..."
- Next in thread: Ed Astle: "Re: comparing images..."
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 14 Mar 2004 16:14:27 -0800
You have the files. Comparing the files is probably a more appropriate
task, since you can work on the files at the byte level. If you are looking
to see if a file is changed because the user is allowed to perform some edit
then I would suggest a CRC check of some sort. When you load the file, do
the CRC, and later when you need to find out if something has changed,
recompute the CRC and compare.
Depending on your application these processes are going to have to happen
at varying levels. You mention comparing within a 70% match range. That
is more difficult because you have to define what a 70% match range is
depending on your application.
If you need a CRC class, or think that it might help you in some way, you can
traverse the blog link and I think it is posted under the Algorithms category.
-- Justin Rogers DigiTec Web Consultants, LLC. Blog: http://weblogs.asp.net/justin_rogers "Franz" <master at franzwong.com> wrote in message news:OIe6RbfCEHA.2824@TK2MSFTNGP12.phx.gbl... > "David" <david@rrtt.net> ¦b¶l¥ó > news:%23%23qACQfCEHA.684@tk2msftngp13.phx.gbl ¤¤¼¶¼g... > > Hello... > > i've two, 100% identical images in two fales, in fact the only thing what > > differs is their name... > > i've loaded them to two diffrent pictureboxes (C#)... > > is there a way of compering between those two pictureboxes "Image" > property, > > if the picture is same? or any other way to "compare" it, even with the > 70% > > of accuracy??? > > > > > > How about comparing the size and each pixel? > Although it is time consuming, it is a way to do your task. > >
- Next message: Andrew S \(Infragistics\): "Re: Graphics.ScaleTransform vs. Graphics.Transform.Scale"
- Previous message: Me: "Re: System.InvalidCastException for Bitmap Constructor -- Please help!!!!"
- In reply to: Franz: "Re: comparing images..."
- Next in thread: Ed Astle: "Re: comparing images..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|