OpenCV453
公開メンバ関数 | 静的公開メンバ関数 | 静的公開変数類 | 限定公開メンバ関数 | 静的限定公開メンバ関数 | 限定公開変数類 | 全メンバ一覧
cv::quality::QualityPSNR クラス

Full reference peak signal to noise ratio (PSNR) algorithm https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio [詳解]

#include <qualitypsnr.hpp>

cv::quality::QualityBaseを継承しています。

公開メンバ関数

CV_WRAP cv::Scalar compute (InputArray cmp) CV_OVERRIDE
 Compute the PSNR [詳解]
 
CV_WRAP bool empty () const CV_OVERRIDE
 Implements Algorithm::empty()
[詳解]
 
CV_WRAP void clear () CV_OVERRIDE
 Implements Algorithm::clear()
[詳解]
 
CV_WRAP double getMaxPixelValue () const
 return the maximum pixel value used for PSNR computation
 
CV_WRAP void setMaxPixelValue (double val)
 sets the maximum pixel value used for PSNR computation [詳解]
 
- 基底クラス cv::quality::QualityBase に属する継承公開メンバ関数
virtual ~QualityBase ()=default
 Destructor
 
virtual CV_WRAP void getQualityMap (OutputArray dst) const
 Returns output quality map that was generated during computation, if supported by the algorithm

 
- 基底クラス cv::Algorithm に属する継承公開メンバ関数
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage [詳解]
 
CV_WRAP void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 simplified API for language bindings これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
 
virtual CV_WRAP void read (const FileNode &fn)
 Reads algorithm parameters from a file storage [詳解]
 
virtual CV_WRAP void save (const String &filename) const
 
virtual CV_WRAP String getDefaultName () const
 

静的公開メンバ関数

static CV_WRAP Ptr< QualityPSNRcreate (InputArray ref, double maxPixelValue=QualityPSNR::MAX_PIXEL_VALUE_DEFAULT)
 Create an object which calculates quality [詳解]
 
static CV_WRAP cv::Scalar compute (InputArray ref, InputArray cmp, OutputArray qualityMap, double maxPixelValue=QualityPSNR::MAX_PIXEL_VALUE_DEFAULT)
 static method for computing quality [詳解]
 
- 基底クラス cv::Algorithm に属する継承静的公開メンバ関数
template<typename _Tp >
static Ptr< _Tp > read (const FileNode &fn)
 Reads algorithm from the file node [詳解]
 
template<typename _Tp >
static Ptr< _Tp > load (const String &filename, const String &objname=String())
 Loads algorithm from the file [詳解]
 
template<typename _Tp >
static Ptr< _Tp > loadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String [詳解]
 

静的公開変数類

static const int MAX_PIXEL_VALUE_DEFAULT = 255
 Default maximum pixel value
 

限定公開メンバ関数

 QualityPSNR (Ptr< QualityMSE > qualityMSE, double maxPixelValue)
 Constructor
 
- 基底クラス cv::Algorithm に属する継承限定公開メンバ関数
void writeFormat (FileStorage &fs) const
 

静的限定公開メンバ関数

static double _mse_to_psnr (double mse, double max_pixel_value)
 
static cv::Scalar _mse_to_psnr (cv::Scalar mse, double max_pixel_value)
 

限定公開変数類

Ptr< QualityMSE_qualityMSE
 
double _maxPixelValue = QualityPSNR::MAX_PIXEL_VALUE_DEFAULT
 
- 基底クラス cv::quality::QualityBase に属する継承限定公開変数類
_mat_type _qualityMap
 Output quality maps if generated by algorithm
 

その他の継承メンバ

- 基底クラス cv::quality::QualityBase に属する継承限定公開型
using _mat_type = cv::UMat
 internal mat type default
 

詳解

Full reference peak signal to noise ratio (PSNR) algorithm https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio

関数詳解

◆ clear()

CV_WRAP void cv::quality::QualityPSNR::clear ( )
inlinevirtual

Implements Algorithm::clear()

cv::quality::QualityBaseを再実装しています。

◆ compute() [1/2]

CV_WRAP cv::Scalar cv::quality::QualityPSNR::compute ( InputArray  cmp)
inlinevirtual

Compute the PSNR

引数
cmpComparison image
戻り値
Per-channel PSNR value, or std::numeric_limits<double>::infinity() if the MSE between the two images == 0

cv::quality::QualityBaseを実装しています。

◆ compute() [2/2]

static CV_WRAP cv::Scalar cv::quality::QualityPSNR::compute ( InputArray  ref,
InputArray  cmp,
OutputArray  qualityMap,
double  maxPixelValue = QualityPSNR::MAX_PIXEL_VALUE_DEFAULT 
)
inlinestatic

static method for computing quality

引数
refreference image
cmpcomparison image
qualityMapoutput quality map, or cv::noArray()
maxPixelValuemaximum per-channel value for any individual pixel; eg 255 for uint8 image
戻り値
PSNR value, or std::numeric_limits<double>::infinity() if the MSE between the two images == 0

◆ create()

static CV_WRAP Ptr< QualityPSNR > cv::quality::QualityPSNR::create ( InputArray  ref,
double  maxPixelValue = QualityPSNR::MAX_PIXEL_VALUE_DEFAULT 
)
inlinestatic

Create an object which calculates quality

引数
refinput image to use as the source for comparison
maxPixelValuemaximum per-channel value for any individual pixel; eg 255 for uint8 image

◆ empty()

CV_WRAP bool cv::quality::QualityPSNR::empty ( ) const
inlinevirtual

Implements Algorithm::empty()

cv::quality::QualityBaseを再実装しています。

◆ setMaxPixelValue()

CV_WRAP void cv::quality::QualityPSNR::setMaxPixelValue ( double  val)
inline

sets the maximum pixel value used for PSNR computation

引数
valMaximum pixel value

このクラス詳解は次のファイルから抽出されました: