compare-psnr

compare_psnr

skimage.measure.compare_psnr(im_true, im_test, dynamic_range=None) [source]

Compute the peak signal to noise ratio (PSNR) for an image.

Parameters:

im_true : ndarray

Ground-truth image.

im_test : ndarray

Test image.

dynamic_range : int

The dynamic range of the input image (distance between minimum and maximum possible values). By default, this is estimated from the image data-type.

Returns:

psnr : float

The PSNR metric.

References

[R260] https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio
doc_scikit_image
2017-01-12 17:20:32
Comments
Leave a Comment

Please login to continue.