easyidp.cvtools.rgb2gray# easyidp.cvtools.rgb2gray(rgb)# Transform the RGB image to gray image 参数: rgb (mxnx3 ndarray) – The RGB ndarray image need to be converted 返回: gray – The output 2D ndarray after convension 返回类型: mxn ndarray 备注 Using the same formular that matplotlib did [1] for the transformation. 引用