Image.image#
- property Image.image: ndarray[source]#
Image as NumPy array
- Returns:
image as a NumPy array
- Return type:
ndarray(H,W) or ndarray(H,W,3)
Return a reference to the encapsulated NumPy array that holds the pixel values.
Example:
>>> from machinevisiontoolbox import Image >>> img = Image.Read('flowers1.png') >>> img Image(size=(640, 426), dtype=uint8, nplanes=3, colororder=R:G:B, name='.../images/flowers1.png') >>> type(img) <class 'machinevisiontoolbox.Image'> >>> type(img.image) <class 'numpy.ndarray'>
Note
For a color image the color plane order is given by the colororder dictionary.
Deprecated since version 2.0.0: Use
arrayinstead.- Seealso: