22__all__ = [
"makeImageFromArray",
"makeMaskFromArray",
"makeMaskedImageFromArrays"]
24from ._image
import Image, Mask
25from ._maskedImage
import MaskedImage
29 """Construct an Image from a NumPy array, inferring the Image type from
30 the NumPy type. Return None if input
is None.
34 return Image(array, dtype=array.dtype.type)
38 """Construct an Mask from a NumPy array, inferring the Mask type from the
39 NumPy type. Return None if input
is None.
43 return Mask(array, dtype=array.dtype.type)
46def makeMaskedImageFromArrays(image, mask=None, variance=None):
47 """Construct a MaskedImage from three NumPy arrays, inferring the
48 MaskedImage types from the NumPy types.
def makeImageFromArray(array)
def makeMaskFromArray(array)