bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / color / colorconv / gray2rgb
function
skimage.color.colorconv:gray2rgb
source: /dev/scikit-image/src/skimage/color/colorconv.py:1028
Signature
def gray2rgb(image, *, channel_axis = -1)Summary
Create an RGB representation of a gray-level image.
Parameters
image: array_likeInput image.
channel_axis: int, optionalThis parameter indicates which axis of the output array will correspond to channels.
Returns
rgb: ndarray of shape (..., C=3, ...)RGB image. A new dimension of length 3 is added to input image.
Notes
If the input is a 1-dimensional image of shape (M,), the output will be of shape (M, C=3).
Aliases
skimage.color.gray2rgb