butterworth_filter module

butterworth_filter.apply_butter(laplace_video_list, levels, alpha, cutoff, low, high, fps, width, height, linearAttenuation)

Applies the Butterworth filter on video sequence, magnifies the filtered video sequence and cuts off spatial frequencies :param laplace_video_list: Laplace video pyramid :param levels: Pyramid levels :param alpha: Magnification factor :param cutoff: Spatial frequencies cutoff factor :param low: Temporal low frequency cutoff :param high: Temporal high frequency cutoff :param fps: Video frame rate :param width: Video frame width :param height: Video frame height :param linearAttenuation: Boolean if linear attenuation should be applied :return:

butterworth_filter.butter_bandpass(lowcut, highcut, fs, order=1)

Calculates the Butterworth bandpass filter :param lowcut: low frequency cutoff :param highcut: high frequency cutoff :param fs: video frame rate :param order: filter order - per default = 1 :return: Numerator (b) and denominator (a) polynomials of the IIR filter.

butterworth_filter.start(vidFile, alpha, cutoff, low, high, linearAttenuation, chromAttenuation, name)

Performs motion magnification on the video by applying Butterworth bandpass filter and saves the output video :param vidFile: Video file :param alpha: Magnification factor :param cutoff: Spatial frequencies cutoff factor :param low: Temporal low frequency cutoff :param high: Temporal high frequency cutoff :param linearAttenuation: Boolean if linear attenuation should be applied :param chromAttenuation: Boolean if chrominance attenuation should be applied :param name: Output video name