Re: Determining if images are roughly equal
Re: Determining if images are roughly equal
- Subject: Re: Determining if images are roughly equal
- From: Hamish Allan <email@hidden>
- Date: Sat, 1 Feb 2003 12:47:44 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In the latest edition of ADC news, the following description appears
under 'Mac OS X Sample Code':
Graphics 2D: Image Difference
This sample demonstrates a way to use Quartz's compositing capability
to find the difference between two images.
<
http://developer.apple.com/samplecode/Sample_Code/Graphics_2D/
Image_Difference.htm>
Hope this helps,
Hamish
On Saturday, Feb 1, 2003, at 03:25 Europe/London, Jan Van Tol wrote:
Can someone suggest a method for roughly comparing NSImages? I am
creating a disk caching mechanism for my app, and I need a way to
check if an image downloaded from the web (could be in any format) is
equal to an NSImage I've created from a PNG on disk. -isEqual doesn't
cut it, since it seems to compare all sorts of stuff that has probably
changed in the process. Can I rely on an NSImage created from a PNG
created from some web image to be comparable to an NSImage created
from the same web image?
I could use TIFFs instead of PNG, but I rather avoid it due to the
relatively large file size.
Thanks in advance!
-Jan Van Tol
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)
iD8DBQE+O8H06gc2d//pELYRAhHjAJ92IoOIoFzFHXjOGS2lNcgYvn5/YACdFD1q
y/YrJ1WbOkUpUuy3xirRXbg=
=O0/1
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.