Functions Index :: S :: ShowY

[<< up one level]

Module:

filters :: channels

Definition:

ShowY(clip c, string "pixel_type")

Description:

A YUV filter analogus to the Show{Red/Green/Blue} RGB filters. It returns the c clip's Y channel as a clip with pixel_type colorspace (or the original if no pixel_type is specified) [1].

Examples:

c = ColorBars().ConvertToYV12()

# get Y channel as a full [0..255] range RGB clip

c_u = c.ColorUYV(levels="tv->pc").ShowY("RGB32")

 

[<< top]

 


[1]:YUV channels do not upscale if an RGB[32/24] pixel type is requested.

To return a full [0.255] range from an ordinary CCIR YUV clip you will have to manually perform ColorYUV(levels="tv->pc") before extracting the channels.