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