Table of Contents

Method PSNR

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

PSNR(InputArray, InputArray, double)

Computes the Peak Signal-to-Noise Ratio (PSNR) image quality metric.

This function calculates the Peak Signal-to-Noise Ratio(PSNR) image quality metric in decibels(dB), between two input arrays src1 and src2.The arrays must have the same type.

public static double PSNR(InputArray src1, InputArray src2, double r = 255)

Parameters

src1 InputArray

first input array.

src2 InputArray

second input array of the same size as src1.

r double

the maximum pixel value (255 by default)

Returns

double