SciPy 0.6.0 API Documentation Generated by Endo, 2007-10-17
Return a copy of a PIL image as a numpy array.
| Parameters: |
|
|---|---|
| Returns: |
|
Simple filtering of an image.
Read an image file from a filename.
Optional arguments:
- flatten (0): if true, the image is flattened by calling convert('F') on
the resulting image object. This flattens the color layers into a single
grayscale layer.
Resize an image.
If size is an integer it is a percentage of current size. If size is a float it is a fraction of current size. If size is a tuple it is the size of the output image.
Rotate an image counter-clockwise by angle degrees.
Save an array to an image file.
Simple showing of an image through an external viewer.
Takes a numpy array and returns a PIL image. The mode of the PIL image depends on the array shape, the pal keyword, and the mode keyword. For 2-D arrays, if pal is a valid (N,3) byte-array giving the RGB values (from 0 to 255) then mode='P', otherwise mode='L', unless mode is given as 'F' or 'I' in which case a float and/or integer array is made For 3-D arrays, the channel_axis argument tells which dimension of the array holds the channel data. For 3-D arrays if one of the dimensions is 3, the mode is 'RGB' by default or 'YCbCr' if selected. if the The numpy array must be either 2 dimensional or 3 dimensional.
| Local name | Refers to |
|---|---|
| amax | numpy.amax |
| amin | numpy.amin |
| arange | numpy.arange |
| array | numpy.array |
| asarray | numpy.asarray |
| cast | numpy.cast |
| Image | Image |
| ImageFilter | ImageFilter |
| iscomplexobj | numpy.iscomplexobj |
| issubdtype | numpy.issubdtype |
| mgrid | numpy.mgrid |
| newaxis | numpy.newaxis |
| numpy | numpy |
| ones | numpy.ones |
| ravel | numpy.ravel |
| sum | numpy.sum |
| tempfile | tempfile |
| transpose | numpy.transpose |
| types | types |
| uint8 | numpy.uint8 |
| zeros | numpy.zeros |