[Image-SIG] Submitting patches

2007-05-18 Thread Noah.org
Is there a mechanism for submitting patches? I added a method to return the average difference between two images as a single scalar value. This is useful for calculating motion offsets and detecting scene changes. Yours, Noah ___ Image-SIG maillist -

[Image-SIG] Dev notes on PIL core

2007-05-29 Thread Noah.org
I'm adding a difference_rms(im1, im2) method to ImageChops. It's fast and works with 1-bit BW, 8-bit gray, and 24-bit color. I plan to post patches to this group when I'm done testing. I have gotten only a little bit familiar with the C code. My concern at this point is the proper way to raise

[Image-SIG] threshold cutoff

2007-06-19 Thread Noah.org
How can I set the absolute white or black level of an image? I want all pixels above or below a certain value clipped. For example, I want all pixels brighter than 200 to be set to 255 (assuming an 8-bit gray-scale image). It seems like ImageOps.autocontrast(image, cutoff=0) is close to what I

[Image-SIG] RMS difference patch

2008-01-16 Thread Noah.org
I have a patch that adds an RMS Difference method to the PIL. Let me know if there is any interest in this. I originally wrote this to help implement a video stabilization filter. You could also use this to quantify how much a lossy compression algorithm distorts an image relative to some other