Name
get_image - read an image from the disk, or assign existing object to the output, or create a blank image
Usage
output = get_image(imagename)
or
output = get_image(None, nx, ny, nz)
Input
- imagename
- one of the following
- "path/to/image" - exisitng image file on the disk
- image - existing image object
- None - the command will create a new image object sized (nx,ny,nz)
- nx
- x size of the new image object (optional, valid only if imagename is None)
- ny
- y size of the new image object (optional, valid only if imagename is None)
- nz
- z size of the new image object (optional, valid only if imagename is None)
Output
- output
- image objected containg the read disk file or a copy of the imagename input image, or a new image object sized (nx,ny,nz).
Author / Maintainer
Pawel A. Penczek
Keywords
- category 1
- UTILITIES
Files
utilities.py
Maturity
- stable
- works for most people, has been tested; test cases/examples available.
Bugs
None. It is perfect.