skvideo.measure.ssim
skvideo.measure.ssim¶Computes Structural Similarity (SSIM) Index. [1]
Both video inputs are compared frame-by-frame to obtain T SSIM measurements on the luminance channel.
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. Here C is only allowed to be 1.
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. Here C is only allowed to be 1.
Luminance saturation weight
Contrast saturation weight
The number of bits each pixel effectively has
Whether to scale the input frame size based on assumed distance, to improve subjective correlation.
2-d averaging window, normalized to unit volume.
The ssim results, ndarray of dimension (T,), where T is the number of frames
References