| 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
)
Public Shared Function Compute (
ref As InputArray,
cmp As InputArray,
qualityMap As OutputArray,
Optional maxPixelValue As Double = 255
) As Scalar
public:
static Scalar Compute(
InputArray^ ref,
InputArray^ cmp,
OutputArray^ qualityMap,
double maxPixelValue = 255
)
static member Compute :
ref : InputArray *
cmp : InputArray *
qualityMap : OutputArray *
?maxPixelValue : float
(* Defaults:
let _maxPixelValue = defaultArg maxPixelValue 255
*)
-> Scalar
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:
ScalarPSNR value, or double.PositiveInfinity if the MSE between the two images == 0
See Also