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