Most Apparent Distortion (MAD)ΒΆ

Module for the most apparent distortion (MAD) metric.

Notes

The code is adapted from the original MATLAB code available under [1].

References

Examples

>>> import numpy as np
>>> from viqa import MAD
>>> img_r = np.random.rand(256, 256)
>>> img_m = np.random.rand(256, 256)
>>> mad = MAD()
>>> mad.score(img_r, img_m, data_range=1)

Functions

most_apparent_distortion(img_r, img_m[, ...])

Calculate the most apparent distortion (MAD) between two images.

most_apparent_distortion_3d(img_r, img_m[, dim])

Calculate the MAD for a 3D image.

Classes

MAD([data_range, normalize])

Class to calculate the most apparent distortion (MAD) between two images.