skvideo.utils.rgb2gray
skvideo.utils.rgb2gray¶Computes the grayscale video.
Computes the grayscale video from the input video returning the standardized shape (T, M, N, C), where T is number of frames, M is height, N is width, and C is number of channels (here always 1).
Input data of shape (T, M, N, C), (T, M, N), (M, N, C), or (M, N), where T is number of frames, M is height, N is width, and C is number of channels.
Standardized grayscaled version of videodata, shape (T, M, N, 1)