machinevisiontoolbox.Image.green
- Image.green()[source]
Extract the green plane of a color image
- Raises:
ValueError – if image is not color
- Return out:
greyscale image representing the green image plane
- Return type:
Image
Example:
>>> from machinevisiontoolbox import Image >>> img = Image.Read("flowers4.png") >>> green = img.green() # green plane >>> green.disp() <matplotlib.image.AxesImage object at 0x7fbd02538340> >>> green Image: 640 x 426 (uint8) >>> green.iscolor False
(Source code, png, hires.png, pdf)