skued.mask_image
- skued.mask_image(image, mask, fill_value=0, copy=True)
Fill invalid pixels in an image with another value, according to a pixel mask. While this function has simply functionality, it is ideal for integrating into a pipeline with
functools.partial
.- Parameters:
- Returns:
masked – Masked image. If
copy = True
, masked points to the same object asimage
.- Return type:
~numpy.ndarray