ImageOps
index
/Library/Python/2.7/site-packages/PIL/ImageOps.py

# The Python Imaging Library.
# $Id$
#
# standard image operations
#
# History:
# 2001-10-20 fl   Created
# 2001-10-23 fl   Added autocontrast operator
# 2001-12-18 fl   Added Kevin's fit operator
# 2004-03-14 fl   Fixed potential division by zero in equalize
# 2005-05-05 fl   Fixed equalize for low number of values
#
# Copyright (c) 2001-2004 by Secret Labs AB
# Copyright (c) 2001-2004 by Fredrik Lundh
#
# See the README file for information on usage and redistribution.
#

 
Modules
       
Image
operator

 
Functions
       
autocontrast(image, cutoff=0, ignore=None)
Maximize image contrast, based on histogram
colorize(image, black, white)
Colorize a grayscale image
crop(image, border=0)
Crop border off image
deform(image, deformer, resample=2)
Deform image using the given deformer
equalize(image, mask=None)
Equalize image histogram
expand(image, border=0, fill=0)
Add border to image
fit(image, size, method=0, bleed=0.0, centering=(0.5, 0.5))
This method returns a sized and cropped version of the image,
cropped to the aspect ratio and size that you request.
flip(image)
Flip image vertically
gaussian_blur(im, radius=None)
PIL_usm.gblur(im, [radius])
gblur = gaussian_blur(im, radius=None)
PIL_usm.gblur(im, [radius])
grayscale(image)
Convert to grayscale
invert(image)
Invert image (negate)
mirror(image)
Flip image horizontally
posterize(image, bits)
Reduce the number of bits per color channel
solarize(image, threshold=128)
Invert all values above threshold
unsharp_mask(im, radius=None, percent=None, threshold=None)
PIL_usm.usm(im, [radius, percent, threshold])
usm = unsharp_mask(im, radius=None, percent=None, threshold=None)
PIL_usm.usm(im, [radius, percent, threshold])