Click or drag to resize

QualityPSNRCompute Method (InputArray, InputArray, OutputArray, Double)

static method for computing quality

Namespace:  OpenCvSharp.Quality
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static Scalar Compute(
	InputArray ref,
	InputArray cmp,
	OutputArray qualityMap,
	double maxPixelValue = 255
)

Parameters

ref
Type: OpenCvSharpInputArray

[Missing <param name="ref"/> documentation for "M:OpenCvSharp.Quality.QualityPSNR.Compute(OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.OutputArray,System.Double)"]

cmp
Type: OpenCvSharpInputArray

[Missing <param name="cmp"/> documentation for "M:OpenCvSharp.Quality.QualityPSNR.Compute(OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.OutputArray,System.Double)"]

qualityMap
Type: OpenCvSharpOutputArray
output quality map, or null
maxPixelValue (Optional)
Type: SystemDouble
maximum per-channel value for any individual pixel; eg 255 for uint8 image

Return Value

Type: Scalar
PSNR value, or double.PositiveInfinity if the MSE between the two images == 0
See Also