from PIL import ImageChops resultIm = ImageChops.lighter(im1,im2)
If we use this on a series of images, comparing the next image to the result image, we essentially create an image of the brightest pixels from the image series. This can be accomplished in python by using code along these lines:
from PIL import Image, ImageChops import glob imgList = glob.glob('./*.jpg') resultIm = Image.open(imgList[0]) for i in range(1,len(imgList)): tempIm = Image.open(imgList[i]) resultIm = ImageChops.lighter(resultIm, tempIm) resultIm.show()
Using an image series (ISS030-E-271717-ISS030-E-271798) from over here and the above code generates this image:
Images courtesy of the Image Science & Analysis Laboratory, NASA Johnson Space Center
No comments:
Post a Comment