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