BRISQUE (Blind/Referenceless Image Spatial Quality Evaluator) is a No Reference Image Quality Assessment (NR-IQA) algorithm.
More...
#include <opencv2/quality/qualitybrisque.hpp>
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. [201] for original paper and original implementation [200] .
A trained model is provided in the /samples/ directory and is trained on the LIVE-R2 database [132] as in the original implementation. When evaluated against the TID2008 database [208] , 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.
◆ QualityBRISQUE() [1/2]
| cv::quality::QualityBRISQUE::QualityBRISQUE |
( |
const cv::String & | model_file_path, |
|
|
const cv::String & | range_file_path ) |
|
protected |
◆ QualityBRISQUE() [2/2]
◆ compute() [1/2]
| Python: |
|---|
| cv.quality.QualityBRISQUE.compute( | img | ) -> | retval |
| cv.quality.QualityBRISQUE.compute( | img, model_file_path, range_file_path | ) -> | retval |
| cv.quality.QualityBRISQUE_compute( | img, model_file_path, range_file_path | ) -> | retval |
Computes BRISQUE quality score for input image.
- Parameters
-
| img | Image for which to compute quality |
- Returns
- cv::Scalar with the score in the first element. The score ranges from 0 (best quality) to 100 (worst quality)
Implements cv::quality::QualityBase.
◆ compute() [2/2]
| Python: |
|---|
| cv.quality.QualityBRISQUE.compute( | img | ) -> | retval |
| cv.quality.QualityBRISQUE.compute( | img, model_file_path, range_file_path | ) -> | retval |
| cv.quality.QualityBRISQUE_compute( | img, model_file_path, range_file_path | ) -> | retval |
static method for computing quality
- Parameters
-
| img | image for which to compute quality |
| model_file_path | cv::String which contains a path to the BRISQUE model data, eg. /path/to/brisque_model_live.yml |
| range_file_path | cv::String which contains a path to the BRISQUE range data, eg. /path/to/brisque_range_live.yml |
- Returns
- cv::Scalar with the score in the first element. The score ranges from 0 (best quality) to 100 (worst quality)
◆ computeFeatures()
| Python: |
|---|
| cv.quality.QualityBRISQUE.computeFeatures( | img[, features] | ) -> | features |
| cv.quality.QualityBRISQUE_computeFeatures( | img[, features] | ) -> | features |
static method for computing image features used by the BRISQUE algorithm
- Parameters
-
| img | image (BGR(A) or grayscale) for which to compute features |
| features | output row vector of features to cv::Mat or cv::UMat |
◆ create() [1/2]
| Python: |
|---|
| cv.quality.QualityBRISQUE.create( | model_file_path, range_file_path | ) -> | retval |
| cv.quality.QualityBRISQUE.create( | model, range | ) -> | retval |
| cv.quality.QualityBRISQUE_create( | model_file_path, range_file_path | ) -> | retval |
| cv.quality.QualityBRISQUE_create( | model, range | ) -> | retval |
Create an object which calculates quality.
- Parameters
-
◆ create() [2/2]
| Python: |
|---|
| cv.quality.QualityBRISQUE.create( | model_file_path, range_file_path | ) -> | retval |
| cv.quality.QualityBRISQUE.create( | model, range | ) -> | retval |
| cv.quality.QualityBRISQUE_create( | model_file_path, range_file_path | ) -> | retval |
| cv.quality.QualityBRISQUE_create( | model, range | ) -> | retval |
Create an object which calculates quality.
- Parameters
-
| model_file_path | cv::String which contains a path to the BRISQUE model data, eg. /path/to/brisque_model_live.yml |
| range_file_path | cv::String which contains a path to the BRISQUE range data, eg. /path/to/brisque_range_live.yml |
◆ _model
◆ _range
| cv::Mat cv::quality::QualityBRISQUE::_range |
|
protected |
The documentation for this class was generated from the following file: