Smoothen Movie Across Time¶
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:
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.