Shortcuts

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