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.
Implements
Inherited Members
Namespace: OpenCvSharp.Quality
Assembly: OpenCvSharp.dll
Syntax
public class QualityBRISQUE : QualityBase, ICvPtrHolder
Constructors
| Improve this Doc View SourceQualityBRISQUE(IntPtr)
Creates instance by raw pointer
Declaration
protected QualityBRISQUE(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
Methods
| Improve this Doc View SourceCompute(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) |
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 |
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 |
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 |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()