Package nifti :: Module niftiimage
[hide private]
[frames] | no frames]

Module niftiimage

source code

Python class representation of a NIfTI image
Classes [hide private]
  NiftiImage
Wrapper class for convenient access to NIfTI data.
  MemMappedNiftiImage
Memory mapped access to uncompressed NIfTI files.
Functions [hide private]
 
cropImage(nimg, bbox)
Crop an image.
source code

Imports: nifticlib, NiftiFormat, splitFilename, nifti2numpy_dtype_map, N


Function Details [hide private]

cropImage(nimg, bbox)

source code 

Crop an image.

'bbox' has to be a sequency of (min,max) tuples (one for each image dimension).

The function returns the cropped image. The data is not shared with the original image, but is copied.