On Tue, Apr 28, 2009 at 8:58 PM, Scott David Daniels <scott.dani...@acm.org> wrote:
> Warning: this distance function is the product of the three elements, > so an exact match on red, green, or blue will look like a match on all. > > Try something like this: > distance2 = 3 * distance ** 2 > mask = ImageMath.eval("convert((((r-R)**2 + (g-G)**2 + (b-B)**2) " > " < distance2) * 255, 'L')", > **locals()) Yeah, brain was not fully engaged when I wrote that. Sorry for that, and thanks for fixing it. </F> _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig