Name
window - window out a section of 1-2-3D image.
Usage
output = Util.window(image, new_nx, new_ny, new_nz ,ix, iy, iz)
Input
- image
- input image
- new_nx
- X-dimension size of the window (required)
- new_ny
- Y-dimension size of the window (optional: default = 1)
- new_nz
- Z-dimension size of the window (optional: default = 1)
- ix
- x-offset from the image center, can be negative (optional: default=0)
- iy
- y-offset from the image center, can be negative (optional: default=0)
- iz
- z-offset from the image center, can be negative (optional: default=0)
Output
- output
- the output image file
Description
- The input parameters are checked for consistency and if new image size exceeds the input image size,
- an error is reported.
- Image center of the extracted section is the same as the original image center, if no offset is specified
- If an offset is specified, the extracted image center is offset with respect to the original image center
Author / Maintainer
- T. Durmaz
Keywords
- category 1
- FUNDAMENTALS
- category 2
- SPATIAL
Files
- util_sparx.cpp
See also
Maturity
- alpha
- works.
Bugs
None. It is perfect.