Skip to content

Functions for calculating and deriving properties for an image using Shannon entropy.

License

Notifications You must be signed in to change notification settings

cooperhewitt/py-cooperhewitt-roboteyes-shannon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-cooperhewitt-roboteyes-shannon

Functions for calculating and deriving properties for an image using Shannon entropy.

Usage

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)

See also

About

Functions for calculating and deriving properties for an image using Shannon entropy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages