[Image-SIG] Image averaging
kappamonagare at yahoo.co.jp
Sun Mar 12 16:20:37 CET 2006
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
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)
TSUKAME EIKOU! KAGAYAKE EGAO!
Yahoo! JAPAN JPC OFFICIAL PARTNER INTERNET PORTAL SITE
More information about the Image-SIG