API Reference >> skvideo.measure.mse
Fork me on GitHub

skvideo.measure.mse

skvideo.measure.mse(referenceVideoData, distortedVideoData)[source]

Computes mean-squared error (MSE).

Both video inputs are compared frame-by-frame to obtain T MSE measurements.

Parameters:

referenceVideoData : ndarray

Reference video, ndarray of dimension (T, M, N, C), (T, M, N), (M, N, C), or (M, N), where T is the number of frames, M is the height, N is width, and C is number of channels.

distortedVideoData : ndarray

Distorted video, ndarray of dimension (T, M, N, C), (T, M, N), (M, N, C), or (M, N), where T is the number of frames, M is the height, N is width, and C is number of channels.

Returns:

mse_array : ndarray

The mse results, ndarray of dimension (T,), where T is the number of frames