Show / Hide Table of Contents

Class QualityPSNR

Full reference peak signal to noise ratio (PSNR) algorithm https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
QualityBase
QualityPSNR
Implements
ICvPtrHolder
Inherited Members
QualityBase.Empty
QualityBase.GetQualityMap(OutputArray)
QualityBase.Compute(InputArray)
QualityBase.Clear()
Algorithm.Write(FileStorage)
Algorithm.Read(FileNode)
Algorithm.Save(String)
Algorithm.GetDefaultName()
DisposableCvObject.ptr
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp.Quality
Assembly: OpenCvSharp.dll
Syntax
public class QualityPSNR : QualityBase, ICvPtrHolder

Constructors

| Improve this Doc View Source

QualityPSNR(IntPtr)

Creates instance by raw pointer

Declaration
protected QualityPSNR(IntPtr p)
Parameters
Type Name Description
IntPtr p

Properties

| Improve this Doc View Source

MaxPixelValue

get or set the maximum pixel value used for PSNR computation

Declaration
public double MaxPixelValue { get; set; }
Property Value
Type Description
System.Double

Methods

| Improve this Doc View Source

Compute(InputArray, InputArray, OutputArray, Double)

static method for computing quality

Declaration
public static Scalar Compute(InputArray ref, InputArray cmp, OutputArray qualityMap, double maxPixelValue = 255)
Parameters
Type Name Description
InputArray ref
InputArray cmp
OutputArray qualityMap

output quality map, or null

System.Double maxPixelValue

maximum per-channel value for any individual pixel; eg 255 for uint8 image

Returns
Type Description
OpenCvSharp.Scalar

PSNR value, or double.PositiveInfinity if the MSE between the two images == 0

| Improve this Doc View Source

Create(InputArray, Double)

Create an object which calculates quality

Declaration
public static QualityPSNR Create(InputArray ref, double maxPixelValue = 255)
Parameters
Type Name Description
InputArray ref

input image to use as the source for comparison

System.Double maxPixelValue

maximum per-channel value for any individual pixel; eg 255 for uint8 image

Returns
Type Description
QualityPSNR
| Improve this Doc View Source

DisposeManaged()

Releases managed resources

Declaration
protected override void DisposeManaged()
Overrides
DisposableObject.DisposeManaged()
| Improve this Doc View Source

DisposeUnmanaged()

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableCvObject.DisposeUnmanaged()
| Improve this Doc View Source

Get()

Declaration
public override IntPtr Get()
Returns
Type Description
IntPtr

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX