Refactoring imagelists¶
Usecases for ImageList¶
Thus far only used in anger in
nipy.modalities.fmri.fmristat.model, similarly in
nipy.modalities.fmri.spm.model.
From that file, an object obj of class FmriImageList must:
return 4D array from
np.asarray(obj), such that the first axis (axis 0) is the axis over which the model is appliedbe indexable such that
obj[0]returns an Image instance, with validshapeandcoordmapattributes for a time-point 3D volume in the 4D time-series.have an attribute
volume_start_timesgiving times of the start of each of the volumes in the 4D time series.Return the number of volumes in the time-series from
len(obj)