ImageFile.harden_mask

ImageFile.harden_mask()

Force the mask to hard.

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.

ma.MaskedArray.hardmask