machinevisiontoolbox.Image.red
- Image.red()[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:
Image
Example:
>>> from machinevisiontoolbox import Image >>> img = Image.Read("flowers4.png") >>> red = img.red() # red plane >>> red Image: 640 x 426 (uint8) >>> red.iscolor False