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

skvideo.measure.mae

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

Computes mean absolute error (MAE).

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

Parameters:
referenceVideoDatandarray

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.

distortedVideoDatandarray

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:
mae_arrayndarray

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