ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> image-sig
image-sig
[Image-SIG] Image averaging
by Fabrice Capiez other posts by this author
Mar 30 2006 1:27PM messages near this date
[Image-SIG] compile problem | [Image-SIG] hair follicle gene expression display
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/
_______________________________________________
Image-SIG maillist  -  Image-SIG@[...].org
http://mail.python.org/mailman/listinfo/image-sig

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved