{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / color / colorconv / ycbcr2rgb

function

skimage.color.colorconv:ycbcr2rgb

source: /dev/scikit-image/src/skimage/color/colorconv.py:2237

Signature

def ycbcr2rgb(ycbcr, *, channel_axis = -1)

Summary

YCbCr to RGB color space conversion.

Parameters

ycbcr : array_like of shape (..., C=3, ...)

The image in YCbCr format. By default, the final dimension denotes channels.

channel_axis : int, optional

This parameter indicates which axis of the array corresponds to channels.

Returns

out : ndarray of shape (..., C=3, ...)

The image in RGB format. Same dimensions as input.

Raises

: ValueError

If ycbcr is not at least 2-D with shape (..., C=3, ...).

Notes

Y is between 16 and 235. This is the color space commonly used by video codecs; it is sometimes incorrectly called "YUV".

Aliases

  • skimage.color.ycbcr2rgb