Shortcuts

mmcv.image.gray2bgr

mmcv.image.gray2bgr(img: numpy.ndarray)numpy.ndarray[source]

Convert a grayscale image to BGR image.

Parameters

img (ndarray) – The input image.

Returns

The converted BGR image.

Return type

ndarray