Show / Hide Table of Contents

Class QualityBRISQUE

BRISQUE (Blind/Referenceless Image Spatial Quality Evaluator) is a No Reference Image Quality Assessment (NR-IQA) algorithm. BRISQUE computes a score based on extracting Natural Scene Statistics(https://en.wikipedia.org/wiki/Scene_statistics) and calculating feature vectors. See Mittal et al. @cite Mittal2 for original paper and original implementation @cite Mittal2_software. A trained model is provided in the /samples/ directory and is trained on the LIVE-R2 database @cite Sheikh as in the original implementation. When evaluated against the TID2008 database @cite Ponomarenko, the SROCC is -0.8424 versus the SROCC of -0.8354 in the original implementation. C++ code for the BRISQUE LIVE-R2 trainer and TID2008 evaluator are also provided in the /samples/ directory.

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
QualityBase
QualityBRISQUE
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 QualityBRISQUE : QualityBase, ICvPtrHolder

Constructors

| Improve this Doc View Source

QualityBRISQUE(IntPtr)

Creates instance by raw pointer

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

Methods

| Improve this Doc View Source

Compute(InputArray, String, String)

static method for computing quality

Declaration
public static Scalar Compute(InputArray img, string modelFilePath, string rangeFilePath)
Parameters
Type Name Description
InputArray img

image for which to compute quality

System.String modelFilePath

String which contains a path to the BRISQUE model data, eg. /path/to/brisque_model_live.yml

System.String rangeFilePath

cv::String which contains a path to the BRISQUE range data, eg. /path/to/brisque_range_live.yml

Returns
Type Description
OpenCvSharp.Scalar

cv::Scalar with the score in the first element. The score ranges from 0 (best quality) to 100 (worst quality)

| Improve this Doc View Source

ComputeFeatures(InputArray, OutputArray)

static method for computing image features used by the BRISQUE algorithm

Declaration
public static void ComputeFeatures(InputArray img, OutputArray features)
Parameters
Type Name Description
InputArray img

image (BGR(A) or grayscale) for which to compute features

OutputArray features

output row vector of features to cv::Mat or cv::UMat

| Improve this Doc View Source

Create(SVM, Mat)

Create an object which calculates quality

Declaration
public static QualityBRISQUE Create(SVM model, Mat range)
Parameters
Type Name Description
SVM model

cv::ml::SVM* which contains a loaded BRISQUE model

Mat range

cv::Mat which contains BRISQUE range data

Returns
Type Description
QualityBRISQUE
| Improve this Doc View Source

Create(String, String)

Create an object which calculates quality

Declaration
public static QualityBRISQUE Create(string modelFilePath, string rangeFilePath)
Parameters
Type Name Description
System.String modelFilePath

String which contains a path to the BRISQUE model data, eg. /path/to/brisque_model_live.yml

System.String rangeFilePath

String which contains a path to the BRISQUE range data, eg. /path/to/brisque_range_live.yml

Returns
Type Description
QualityBRISQUE
| 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