[Image-SIG] Image averaging

Fabrice Capiez kappamonagare at yahoo.co.jp
Sun Mar 12 16:20:37 CET 2006


Hello List

Just a call for advice. I am using the VideoCapture  module to grab 
frames from a webcam and, to reduce the noise, I am averaging several 
frames instead of just taking one. (I take microscopic images so the 
subject does not move in between)
My first attempt was to convert PIL images to Numeric arrays, average 3 
or 4 of these arrays and convert back to a PIL image. This process takes 
quite some time so I cannot use it in practicefor my home-made capture 
program.
The solution I have adopted right now is to take only 2 frames and use 
Image.blend(im1, im2, 0.5). This solution is quite fast but of course I 
am limited to 2 frames.

Anyone has an advice on what would be a better (ie : faster) solution ?

Looking forward to any advice on the subject (or any advice in genral 
regarding image calculations)

Fabrice C.
--------------------------------------
TSUKAME EIKOU! KAGAYAKE EGAO!
Yahoo! JAPAN JPC OFFICIAL PARTNER INTERNET PORTAL SITE
http://pr.mail.yahoo.co.jp/wintergames/


More information about the Image-SIG mailing list