OpenCV  4.1.0
Open Source Computer Vision
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cv::quality::QualityGMSD Class Reference

Full reference GMSD algorithm http://www4.comp.polyu.edu.hk/~cslzhang/IQA/GMSD/GMSD.htm. More...

#include <opencv2/quality/qualitygmsd.hpp>

Inheritance diagram for cv::quality::QualityGMSD:
cv::quality::QualityBase cv::Algorithm

Classes

struct  _mat_data
 

Public Member Functions

void clear () CV_OVERRIDE
 Implements Algorithm::clear()
 
cv::Scalar compute (InputArrayOfArrays cmpImgs) CV_OVERRIDE
 Compute GMSD.
 
bool empty () const CV_OVERRIDE
 Implements Algorithm::empty()
 
- Public Member Functions inherited from cv::quality::QualityBase
virtual ~QualityBase ()=default
 Destructor.
 
virtual void getQualityMaps (OutputArrayOfArrays dst) const
 Returns output quality map images that were generated during computation, if supported by the algorithm.
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 Reads algorithm parameters from a file storage.
 
virtual void save (const String &filename) const
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage.
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 simplified API for language bindingsThis is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 

Static Public Member Functions

static cv::Scalar compute (InputArrayOfArrays refImgs, InputArrayOfArrays cmpImgs, OutputArrayOfArrays qualityMaps)
 static method for computing quality
 
static Ptr< QualityGMSDcreate (InputArrayOfArrays refImgs)
 Create an object which calculates image quality.
 

Protected Member Functions

 QualityGMSD (std::vector< _mat_data > refImgData)
 Constructor.
 

Protected Attributes

std::vector< _mat_data_refImgData
 Reference image data.
 
- Protected Attributes inherited from cv::quality::QualityBase
std::vector< _quality_map_type_qualityMaps
 Output quality maps if generated by algorithm.
 

Additional Inherited Members

- Protected Types inherited from cv::quality::QualityBase
using _quality_map_type = cv::UMat
 internal quality map type default
 

Detailed Description

Full reference GMSD algorithm http://www4.comp.polyu.edu.hk/~cslzhang/IQA/GMSD/GMSD.htm.

Constructor & Destructor Documentation

cv::quality::QualityGMSD::QualityGMSD ( std::vector< _mat_data refImgData)
inlineprotected

Constructor.

Parameters
refImgDatavector of reference images, converted to internal type

Member Function Documentation

void cv::quality::QualityGMSD::clear ( )
inlinevirtual
Python:
None=cv.quality_QualityGMSD.clear()

Implements Algorithm::clear()

Reimplemented from cv::quality::QualityBase.

cv::Scalar cv::quality::QualityGMSD::compute ( InputArrayOfArrays  cmpImgs)
virtual
Python:
retval=cv.quality_QualityGMSD.compute(cmpImgs)
retval, qualityMaps=cv.quality_QualityGMSD.compute(refImgs, cmpImgs[, qualityMaps])
retval, qualityMaps=cv.quality.QualityGMSD_compute(refImgs, cmpImgs[, qualityMaps])

Compute GMSD.

Parameters
cmpImgsComparison images
Returns
Per-channel GMSD

Implements cv::quality::QualityBase.

static cv::Scalar cv::quality::QualityGMSD::compute ( InputArrayOfArrays  refImgs,
InputArrayOfArrays  cmpImgs,
OutputArrayOfArrays  qualityMaps 
)
static
Python:
retval=cv.quality_QualityGMSD.compute(cmpImgs)
retval, qualityMaps=cv.quality_QualityGMSD.compute(refImgs, cmpImgs[, qualityMaps])
retval, qualityMaps=cv.quality.QualityGMSD_compute(refImgs, cmpImgs[, qualityMaps])

static method for computing quality

Parameters
refImgsreference image(s)
cmpImgscomparison image(s)
qualityMapsoutput quality map(s), or cv::noArray()
Returns
cv::Scalar with per-channel quality value. Values range from 0 (worst) to 1 (best)
static Ptr<QualityGMSD> cv::quality::QualityGMSD::create ( InputArrayOfArrays  refImgs)
static
Python:
retval=cv.quality.QualityGMSD_create(refImgs)

Create an object which calculates image quality.

Parameters
refImgsinput image(s) to use as the source for comparison
bool cv::quality::QualityGMSD::empty ( ) const
inlinevirtual
Python:
retval=cv.quality_QualityGMSD.empty()

Implements Algorithm::empty()

Reimplemented from cv::quality::QualityBase.

Member Data Documentation

std::vector<_mat_data> cv::quality::QualityGMSD::_refImgData
protected

Reference image data.


The documentation for this class was generated from the following file: