Grayscale image, to be converted to the RGB.
Pre-allocated range, where RGB image will be copied. Default argument is an empty slice, where new data is allocated and returned. If given slice is not of corresponding shape(range.shape[0], range.shape[1], 3), it is discarded and allocated anew.
Returns RGB version of the given grayscale image.
Note: Input and pre-allocated slices' strides must be identical.
Convert gray image to RGB.
Uses grayscale value and assigns it's value to each of three channels for the RGB image version.