Image.array#
- property Image.array: ndarray[source]#
Image as NumPy array
- Returns:
image as a NumPy array
- Return type:
ndarray(H,W) or ndarray(H,W,3)
Return a read-only view of the encapsulated NumPy array that holds the pixel values.
Example:
>>> from machinevisiontoolbox import Image >>> img = Image.Read('flowers1.png') >>> type(img) <class 'machinevisiontoolbox.Image'> >>> type(img.array) <class 'numpy.ndarray'>
Note
For a color image the color plane order is given by the colororder dictionary.
- Seealso: