Please consider citing the scikit-learn if you use it.
Extract region signals from image.
This function is applicable to regions defined by maps.
niimgs: niimg :
input images.
maps_img: niimg :
regions definition as maps (array of weights). shape: niimgs.shape + (region number, )
mask_img: niimg :
mask to apply to regions before extracting signals. Every point outside the mask is considered as background (i.e. outside of any region).
order: str :
ordering of output array (“C” or “F”). Defaults to “F”.
region_signals: numpy.ndarray :
Signals extracted from each region. Shape is: (scans number, number of regions intersecting mask)
labels: list :
maps_img[..., labels[n]] is the region that has been used to extract signal region_signals[:, n].
See also
nilearn.region.img_to_signals_labels, nilearn.region.signals_to_img_maps