The ImageMath Module should take care of it (works on single-band
images, which is what it sounds like you've got):
(slight mod of demo)
import Image, ImageMath
im1 = Image.open("image1.jpg")
im2 = Image.open("image2.jpg")
out = ImageMath.eval("a + b", a=im1, b=im2)
out.save("result.png")
james
On Oct 16, 3:32 am, Bishwarup <[email protected]> wrote:
> Dear All,
>
> I am new to PIL and python. I am in the process of developing a plugin
> for image processing. In this I need to modify each pixel of an image,
> then combine the images to form a new image. The pixel values of the
> new image will be summation of the pixel values of all the images at
> that particular location.
> Can this be achieved through PIl and python, If yes then how?
> I am using PIL 1.1.6, python 2.5 and windows
> Thank you in advance.
> With Regards