Functions for calculating and deriving properties for an image using Shannon entropy.
import sys
import Image
import pprint
import cooperhewitt.roboteyes.shannon as shannon
path = sys.argv[1]
im = Image.open(path)
entropy = shannon.entropy(im)
print pprint.pformat(entropy)
tiles = shannon.focalpoint(im)
print pprint.pformat(tiles)