skimage2.color.ydbdr2rgb#

skimage2.color.ydbdr2rgb(ydbdr, *, channel_axis=-1)[source]#

YDbDr to RGB color space conversion.

Parameters:
ydbdrarray_like of shape (…, C=3, …)

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

channel_axisint, optional

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

Added in version 0.19: channel_axis was added in 0.19.

Returns:
outndarray of shape (…, C=3, …)

The image in RGB format. Same dimensions as input.

Raises:
ValueError

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

Notes

This is the color space commonly used by video codecs, also called the reversible color transform in JPEG2000.

References