Series#

The Series level is the natural level of interaction for most use cases in imaging, since individual scans are typically stored in separate series.

Nearly all of the pipelines provided so far operate on series and return other series, for relatively general use cases including reslicing, rotations, coregistration, segmentation and general image processing.

The documentation of these features is currently catching up with these use cases. Please come back later for a more extensively documented interface for the Series class.

Working with arrays#

Series.ndarray([dims, coords, slice])

Return a numpy.ndarray with pixel data.

Series.set_ndarray(array[, coords, slice])

Assign new pixel data with a new numpy.ndarray.

Series.affine()

Return a list of unique affine matrices in the series

Series.set_affine(affine)

Set the affine matrix of a series.

Series.slice_groups([dims])

Return a list of slice groups in the series.

Series editing#

Series.split_by(keyword)

Split the series into multiple subseries based on keyword value.

Series.subseries(**kwargs)

Extract a subseries based on values of header elements.