RGB to LAB

Convert image from RGB colorspace to LAB colorspace and split the channels.

rgb2gray_hsv(img, channel, device, debug=None)

returns device, split image (l, a, or b channel)

Original RGB image

Screenshot

from plantcv import plantcv as pcv

# image converted from RGB to LAB, channels are then split. Lightness ('l') channel is outputed.

device, l_channel=pcv.rgb2gray_lab(img, 'l', device, debug="print")

Lightness channel image

Screenshot

from plantcv import plantcv as pcv

# image converted from RGB to LAB, channels are then split. Green-Magenta ('a') channel is outputed.

device, a_channel= pcv.rgb2gray_lab(img, 'a', device, debug="print")

Green-Magenta channel image

Screenshot

from plantcv import plantcv as pcv

# image converted from RGB to Lab, channels are then split. Blue-Yellow ('b') channel is outputed.

device, b_channel=pcv.rgb2gray_lab(img, 'b', device, debug="print")

Blue-Yellow channel image

Screenshot