23 __all__ = [
"makeImageFromArray",
"makeMaskFromArray",
"makeMaskedImageFromArrays"]
25 from .image
import Image, Mask
26 from .maskedImage
import MaskedImage
30 """Construct an Image from a NumPy array, inferring the Image type from
31 the NumPy type. Return None if input is None.
35 return Image(array, dtype=array.dtype.type)
39 """Construct an Mask from a NumPy array, inferring the Mask type from the
40 NumPy type. Return None if input is None.
44 return Mask(array, dtype=array.dtype.type)
48 """Construct a MaskedImage from three NumPy arrays, inferring the
49 MaskedImage types from the NumPy types.