Click or drag to resize

Cv2PSNR Method

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.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static double PSNR(
	InputArray src1,
	InputArray src2,
	double r = 255
)

Parameters

src1
Type: OpenCvSharpInputArray
first input array.
src2
Type: OpenCvSharpInputArray
second input array of the same size as src1.
r (Optional)
Type: SystemDouble
the maximum pixel value (255 by default)

Return Value

Type: Double

[Missing <returns> documentation for "M:OpenCvSharp.Cv2.PSNR(OpenCvSharp.InputArray,OpenCvSharp.InputArray,System.Double)"]

See Also