Availability:IRIX.
Theimgfile module allows Python programs to access SGI imglib imagefiles (also known as.rgb files). The module is far fromcomplete, but is provided anyway since the functionality that there isis enough in some cases. Currently, colormap files are not supported.
The module defines the following variables and functions:
(x,y,z) wherex andy are the size of the image in pixels andz is the number ofbytes per pixel. Only 3 byte RGB pixels and 1 byte greyscale pixelsare currently supported.Alternatively, you can specify a filter to use to smoothen the imageafter scaling. The filter forms supported are'impulse','box','triangle','quadratic' and'gaussian'. If a filter is specifiedblur is an optionalparameter specifying the blurriness of the filter. It defaults to1.0.
readscaled() makes no attempt to keep the aspect ratiocorrect, so that is the users' responsibility.
| Python Library Reference |