yuv2rgb

Convert YUV image to RGB.

As in rgb2yuv conversion, YUV format is considered to have same amount of luma and chroma.

pure nothrow
Slice!(SliceKind.contiguous, [3], V*)
yuv2rgb
(
V
)
(
Slice!(SliceKind.contiguous, [3], V*) input
,
Slice!(SliceKind.contiguous, [3], V*) prealloc = emptySlice!([3], V)
)

Parameters

input Slice!(SliceKind.contiguous, [3], V*)

Input YUV image.

prealloc Slice!(SliceKind.contiguous, [3], V*)

Optional pre-allocated buffer. If given, has to be of same shape as input image, otherwise gets reallocated.

Return Value

Type: Slice!(SliceKind.contiguous, [3], V*)

Resulting RGB image slice.

Note: Input and pre-allocated slices' strides must be identical.

Meta