Skip to content

Smoothen Movie Across Time

Compute Credits

This tool uses 0.5 compute credits per hour.

The Smoothen Movie Across Time tool is used to spatially smoothen a movie by computing a pixel-wise rolling average across time.

Inputs

Parameters

Parameter Required? Default Description
Input Movie Files True N/A Input .isxd movie files
Window Size True 3 Odd number representing the number of frames to average for each time point. Each frame in the output movie will correspond to the average of 'window_size' frames centered around that frame.

Algorithm Description

Each frame in the output movie is computed by averaging a window of frames centered around a specific input frame. Frames are indexed from 0 to N - 1, where N is the total number of frames in the input movie. For each frame in the input movie, the algorithm extracts a window of frames centered at that particular index. The odd window size specified by the user is used to determine the number of frames to include on either side of the current frame, which is computed as \(n=(w-1)/2\) where \(w\) represents the window size. The current frame is also included in the window. A pixel-wise average is then computed across the frames contained in the window to generate the smoothened output frame. The process is repeated for every frame in the input movie. For frames within a distance of \(n\) from either end of the recording, only the frames available are used to construct the window and compute the average.

Each frame in the output movie is computed using the following formula:

\[ f_\text{i} = \frac{(\sum_{j=i-1-n}^{i-1} f_\text{j}) + f_\text{i} + (\sum_{j=i+1}^{i+1+n} f_\text{j})}{w} \]

where \(f_\text{i}\) represents the frame at index \(i\), \(w\) the window size, and \(n\) the number of frames on either side of the current frame.

Outputs

The tool will output a smoothened movie (isxd) in which individual frames were generated using the algorithm described above. The spatial and temporal metadata of the movie will remain unchanged.