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

Full reference mean square error algorithm https://en.wikipedia.org/wiki/Mean_squared_error. More...

#include <opencv2/quality/qualitymse.hpp>

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

Public Member Functions

void clear () CV_OVERRIDE
 Implements Algorithm::clear()
 
cv::Scalar compute (InputArrayOfArrays cmpImgs) CV_OVERRIDE
 Computes MSE for reference images supplied in class constructor and provided comparison images.
 
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< QualityMSEcreate (InputArrayOfArrays refImgs)
 Create an object which calculates quality.
 

Protected Member Functions

 QualityMSE (std::vector< QualityBase::_quality_map_type > refImgs)
 Constructor.
 

Protected Attributes

std::vector
< QualityBase::_quality_map_type
_refImgs
 Reference images, converted to internal mat type.
 
- 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 mean square error algorithm https://en.wikipedia.org/wiki/Mean_squared_error.

Constructor & Destructor Documentation

cv::quality::QualityMSE::QualityMSE ( std::vector< QualityBase::_quality_map_type refImgs)
inlineprotected

Constructor.

Parameters
refImgsvector of reference images, converted to internal type

Member Function Documentation

void cv::quality::QualityMSE::clear ( )
inlinevirtual
Python:
None=cv.quality_QualityMSE.clear()

Implements Algorithm::clear()

Reimplemented from cv::quality::QualityBase.

cv::Scalar cv::quality::QualityMSE::compute ( InputArrayOfArrays  cmpImgs)
virtual
Python:
retval=cv.quality_QualityMSE.compute(cmpImgs)
retval, qualityMaps=cv.quality_QualityMSE.compute(refImgs, cmpImgs[, qualityMaps])
retval, qualityMaps=cv.quality.QualityMSE_compute(refImgs, cmpImgs[, qualityMaps])

Computes MSE for reference images supplied in class constructor and provided comparison images.

Parameters
cmpImgsComparison image(s)
Returns
cv::Scalar with per-channel quality values. Values range from 0 (best) to potentially max float (worst)

Implements cv::quality::QualityBase.

static cv::Scalar cv::quality::QualityMSE::compute ( InputArrayOfArrays  refImgs,
InputArrayOfArrays  cmpImgs,
OutputArrayOfArrays  qualityMaps 
)
static
Python:
retval=cv.quality_QualityMSE.compute(cmpImgs)
retval, qualityMaps=cv.quality_QualityMSE.compute(refImgs, cmpImgs[, qualityMaps])
retval, qualityMaps=cv.quality.QualityMSE_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 values. Values range from 0 (best) to potentially max float (worst)
static Ptr<QualityMSE> cv::quality::QualityMSE::create ( InputArrayOfArrays  refImgs)
static
Python:
retval=cv.quality.QualityMSE_create(refImgs)

Create an object which calculates quality.

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

Implements Algorithm::empty()

Reimplemented from cv::quality::QualityBase.

Member Data Documentation

std::vector<QualityBase::_quality_map_type> cv::quality::QualityMSE::_refImgs
protected

Reference images, converted to internal mat type.


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