nibabel.fileslice¶
Utilities for getting array slices out of file-like objects
Functions
|
Return parameters for slicing array with sliceobj given memory layout |
|
Return canonical version of sliceobj for array shape shape |
|
Slice array in fileobj using sliceobj slicer and array definitions |
|
Return slice object with Nones filled out to match in_len |
|
Returns True if sliceobj is attempting fancy indexing |
|
Calculates slices to read from disk, and apply after reading |
|
Return maybe modified slice and post-slice slicing for slicer |
|
Predict shape of array from slicing array shape shape with sliceobj |
|
Read n_bytes byte data implied by segments from fileobj |
|
Output length after slicing original length in_len with slicer Parameters ---------- slicer : slice object in_len : int |
|
Matching output axes for input array ndim ndim and slice sliceobj |
|
Get segments from read_slicers given in_shape and memory steps |
|
Return array shape shape where all entries point to value scalar |
|
Whether to force full axis read or contiguous read of stepped slice |