Skip to content

Instantly share code, notes, and snippets.

View blryface's full-sized avatar
🍮
Cooking Custard

blryface blryface

🍮
Cooking Custard
View GitHub Profile
@jsundram
jsundram / image_average.py
Created June 11, 2013 18:12
Takes a folder full of images and computes their average and median. Assumes they all have the same dimensions. Makes no attempt at alignment.
from glob import glob
import numpy as np
import os
import sys
# You'll need scikit-image and PIL installed to use this
try:
import skimage.io
except ImportError:
sys.exit("please 'pip install scikit-image' to use this script")