sarcgraph.sg.SarcGraph._to_gray

SarcGraph._to_gray(frames)[source]

Convert RGB frames to grayscale.

Parameters:

frames (np.ndarray) – RGB frames

Returns:

All frames in gray scale

Return type:

numpy.ndarray