easyidp.cvtools.rgb2gray#
- easyidp.cvtools.rgb2gray(rgb)#
Transform the RGB image to gray image
- Parameters:
rgb (mxnx3 ndarray) – The RGB ndarray image need to be converted
- Returns:
gray – The output 2D ndarray after convension
- Return type:
mxn ndarray
Notes
Using the same formular that matplotlib did [1] for the transformation.
References