mmcv.image.gray2rgb¶ mmcv.image.gray2rgb(img: ndarray) → ndarray[source]¶ Convert a grayscale image to RGB image. Parameters: img (ndarray) – The input image. Returns: The converted RGB image. Return type: ndarray