quick pixelwise euclidean difference

"Lauri Love (nsh)" <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
i'm coding a project which requires quick comparison of two images per pixel
by colorspace (distance is the sum of the squares of the differences of RGB
values over the pixels of the images), as a fitness function (i am trying to
recreate/extend roger alsing's genetic mona lisa code in python).

creating an absolute difference image takes about 1/100th of a second on my
(eeepc) hardware, but i can't figure out a way to reduce the difference
image to an integer of float value quickly. it takes about the order of 5
seconds to iterate through all the pixels and sum the RGB values to get the
manhattan distance. "manually" calculating the manhattan or euclidean
distances between the two images is even slower.

can anyone suggest a way to quickly get either distance from two images?

sincerely and gratefully,

-nsh

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.