OpenCV 4.5.3(日本語機械翻訳)
qualitybrisque.hpp
1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
4
5 #ifndef OPENCV_QUALITY_QUALITYBRISQUE_HPP
6 #define OPENCV_QUALITY_QUALITYBRISQUE_HPP
7
8 #include "qualitybase.hpp"
9 #include "opencv2/ml.hpp"
10
11 namespace cv
12{
13 namespace quality
14{
15
26 class CV_EXPORTS_W QualityBRISQUE : public QualityBase {
27 public:
28
33 CV_WRAP cv::Scalar compute( InputArray img ) CV_OVERRIDE;
34
40 CV_WRAP static Ptr<QualityBRISQUE> create( const cv::String& model_file_path, const cv::String& range_file_path );
41
47 CV_WRAP static Ptr<QualityBRISQUE> create( const cv::Ptr<cv::ml::SVM>& model, const cv::Mat& range );
48
56 CV_WRAP static cv::Scalar compute( InputArray img, const cv::String& model_file_path, const cv::String& range_file_path );
57
63 CV_WRAP static void computeFeatures(InputArray img, OutputArray features);
64
65 protected:
66
67 cv::Ptr<cv::ml::SVM> _model = nullptr;
68 cv::Mat _range;
69
71 QualityBRISQUE( const cv::String& model_file_path, const cv::String& range_file_path );
72
74 QualityBRISQUE(const cv::Ptr<cv::ml::SVM>& model, const cv::Mat& range )
75 : _model{ model }
76 , _range{ range }
77 {}
78
79}; // QualityBRISQUE
80} // quality
81} // cv
82 #endif
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:295
n-dimensional dense array class
Definition: mat.hpp:802
BRISQUE (Blind/Referenceless Image Spatial Quality Evaluator) is a No Reference Image Quality Assessm...
Definition: qualitybrisque.hpp:26
QualityBRISQUE(const cv::String &model_file_path, const cv::String &range_file_path)
Internal constructor
QualityBRISQUE(const cv::Ptr< cv::ml::SVM > &model, const cv::Mat &range)
Internal constructor
Definition: qualitybrisque.hpp:74
Definition: qualitybase.hpp:25
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
Definition: cvstd_wrapper.hpp:74