This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
Create image from region signals defined as labels.
The same region signal is used for each voxel of the corresponding 3D volume.
labels_img, mask_img must have the same shapes and affines.
labels_img: Niimg-like object
mask_img: Niimg-like object, optional