ImageFile.harden_mask¶
- ImageFile.harden_mask()¶
Force the mask to hard, preventing unmasking by assignment.
Whether the mask of a masked array is hard or soft is determined by its ~ma.MaskedArray.hardmask property. harden_mask sets ~ma.MaskedArray.hardmask to
True
(and returns the modified self).ma.MaskedArray.hardmask ma.MaskedArray.soften_mask