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 [詳解]
|
|
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
|
|
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 const int | MAX_PIXEL_VALUE_DEFAULT = 255 |
| Default maximum pixel value
|
|
|
static double | _mse_to_psnr (double mse, double max_pixel_value) |
|
static cv::Scalar | _mse_to_psnr (cv::Scalar mse, double max_pixel_value) |
|
|
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 |
◆ compute() [1/2]
CV_WRAP cv::Scalar cv::quality::QualityPSNR::compute |
( |
InputArray |
cmp | ) |
|
|
inlinevirtual |
Compute the PSNR
- 引数
-
- 戻り値
- 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 method for computing quality
- 引数
-
ref | reference image |
cmp | comparison image |
qualityMap | output quality map, or cv::noArray() |
maxPixelValue | maximum 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()
Create an object which calculates quality
- 引数
-
ref | input image to use as the source for comparison |
maxPixelValue | maximum per-channel value for any individual pixel; eg 255 for uint8 image |
◆ empty()
CV_WRAP bool cv::quality::QualityPSNR::empty |
( |
| ) |
const |
|
inlinevirtual |
◆ setMaxPixelValue()
CV_WRAP void cv::quality::QualityPSNR::setMaxPixelValue |
( |
double |
val | ) |
|
|
inline |
sets the maximum pixel value used for PSNR computation
- 引数
-
このクラス詳解は次のファイルから抽出されました: