video module

video.calculate_pyramid_levels(vidWidth, vidHeight)

Calculates the maximal pyramid levels for the Laplacian pyramid :param vidWidth: video frames’ width :param vidHeight: video frames’ height

video.load_video(vidFile)

Reads the video :param vidFile: Video file :return: video sequence, frame rate, width & height of video frames

video.rgb2yiq(video)

Converts the video color from RGB to YIQ (NTSC) :param video: RGB video sequence :return: YIQ-color video sequence

video.save_video(video_tensor, fps, name)

Creates a new video for the output :param video_tensor: filtered video sequence :param fps: frame rate of original video :param name: output video name

video.yiq2rgb(video)

Converts the video color from YIQ (NTSC) to RGB :param video: YIQ-color video sequence :return: RGB video sequence