cortex.volume.unmask¶
- cortex.volume.unmask(mask, data)[source]¶
Unmask the data, assuming it’s been masked. Creates a volume the same size as mask containing data at the locations where mask is True.
If data is RGB valued (dtype uint8 and last dim is 3 or 4), the area outside the mask will be filled with zeros.
Otherwise, a numpy MaskedArray will be returned.
- Parameters:
- maskarray_like
The data mask
- dataarray_like
Actual MRI data to unmask
- Returns:
- unmaskedarray_like
Volume same size as mask but same dtype as data.