def trans(self, img): rst = color.rgb2lab(img) print('============', rst.min(), rst.max()) rst+=100; rst*=(255/200.0) return (rst).astype(np.uint8)