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