cv::quality::QualitySSIM Class Reference


Full reference structural similarity algorithm https://en.wikipedia.org/wiki/Structural_similarity . 更多...

#include <opencv2/quality/qualityssim.hpp>

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

struct _mat_data

Public Member Functions

void clear () CV_OVERRIDE
实现 Algorithm::clear() 更多...
cv::Scalar compute ( InputArray cmp) CV_OVERRIDE
Computes SSIM. 更多...
bool empty () const CV_OVERRIDE
实现 Algorithm::empty() 更多...
- Public Member Functions inherited from cv::quality::QualityBase
virtual ~QualityBase ()=default
析构函数。 更多...
virtual void getQualityMap ( OutputArray dst) const
Returns output quality map that was generated during computation, if supported by the algorithm. 更多...
- Public Member Functions inherited from cv::Algorithm
Algorithm ()
virtual ~Algorithm ()
virtual 字符串 getDefaultName () const
virtual void read (const FileNode &fn)
Reads algorithm parameters from a file storage. 更多...
virtual void save (const 字符串 &filename) const
virtual void write ( FileStorage &fs) const
Stores algorithm parameters in a file storage. 更多...
void write (const Ptr < FileStorage > &fs, const 字符串 &name= 字符串 ()) const
simplified API for language bindings This 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 ( InputArray ref, InputArray cmp, OutputArray qualityMap)
static method for computing quality 更多...
static Ptr < QualitySSIM > create ( InputArray ref)
Create an object which calculates quality. 更多...
- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr < _Tp > load (const 字符串 &filename, const 字符串 &objname= 字符串 ())
Loads algorithm from the file. 更多...
template<typename _Tp >
static Ptr < _Tp > loadFromString (const 字符串 &strModel, const 字符串 &objname= 字符串 ())
Loads algorithm from a String. 更多...
template<typename _Tp >
static Ptr < _Tp > read (const FileNode &fn)
Reads algorithm from the file node. 更多...

Protected Member Functions

QualitySSIM ( _mat_data refImgData)
构造函数。 更多...
- Protected Member Functions inherited from cv::Algorithm
void writeFormat ( FileStorage &fs) const

Protected Attributes

_mat_data _refImgData
Reference image data. 更多...
- Protected Attributes inherited from cv::quality::QualityBase
_mat_type _qualityMap
Output quality maps if generated by algorithm. 更多...

额外继承成员

- Protected Types inherited from cv::quality::QualityBase
使用 _mat_type = cv::UMat
internal mat type default 更多...

详细描述

Full reference structural similarity algorithm https://en.wikipedia.org/wiki/Structural_similarity .

Constructor & Destructor Documentation

QualitySSIM()

cv::quality::QualitySSIM::QualitySSIM ( _mat_data refImgData )
inline protected

构造函数。

参数
refImgData reference image, converted to internal type

成员函数文档编制

clear()

void cv::quality::QualitySSIM::clear ( )
inline virtual
Python:
None = cv.quality_QualitySSIM.clear( )

compute() [1/2]

cv::Scalar cv::quality::QualitySSIM::compute ( InputArray cmp )
virtual
Python:
retval = cv.quality_QualitySSIM.compute( cmp )
retval, qualityMap = cv.quality_QualitySSIM.compute( ref, cmp[, qualityMap] )
retval, qualityMap = cv.quality.QualitySSIM_compute( ref, cmp[, qualityMap] )

Computes SSIM.

参数
cmp Comparison image
返回
cv::Scalar with per-channel quality values. Values range from 0 (worst) to 1 (best)

实现 cv::quality::QualityBase .

compute() [2/2]

static cv::Scalar cv::quality::QualitySSIM::compute ( InputArray ref ,
InputArray cmp ,
OutputArray qualityMap
)
static
Python:
retval = cv.quality_QualitySSIM.compute( cmp )
retval, qualityMap = cv.quality_QualitySSIM.compute( ref, cmp[, qualityMap] )
retval, qualityMap = cv.quality.QualitySSIM_compute( ref, cmp[, qualityMap] )

static method for computing quality

参数
ref reference image
cmp comparison image
qualityMap output quality map, or cv::noArray()
返回
cv::Scalar with per-channel quality values. Values range from 0 (worst) to 1 (best)

create()

static Ptr < QualitySSIM > cv::quality::QualitySSIM::create ( InputArray ref )
static
Python:
retval = cv.quality.QualitySSIM_create( ref )

Create an object which calculates quality.

参数
ref input image to use as the reference image for comparison

empty()

bool cv::quality::QualitySSIM::empty ( ) const
inline virtual
Python:
retval = cv.quality_QualitySSIM.empty( )

Member Data Documentation

_refImgData

_mat_data cv::quality::QualitySSIM::_refImgData
protected

Reference image data.


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