Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV_Contrib module quality

Hello, I am using 'https://github.com/opencv/opencv_contrib/tree/master/modules/quality' for image quality assessment . When i write following code in main() function and execute I got an error.

Mat img = cv::imread("E:\Images\Slide_02\200131_141613\Tile_0_0_0_0_2.bmp");

String model_path = "E:\VS_Projects\ImageQuality_opencvContrib\ImageQuality_opencvContrib\brisque_model_live.yml";

cv::String range_path = "E:\VS_Projects\ImageQuality_opencvContrib\ImageQuality_opencvContrib\brisque_range_live.yml";

/* compute BRISQUE quality score via static method */
cv::Scalar result_static = quality::QualityBRISQUE::compute(img,model_path, range_path);

Error : e:\opencv_contrib-master\modules\quality\include\opencv2\quality\qualitybrisque.hpp(67): error C2665: 'cv::Ptr<cv::ml::svm>::Ptr': none of the 3 overloads could convert all the argument types

please suggest me where i am going wrong.

click to hide/show revision 2
None

updated 2020-03-26 02:42:17 -0600

berak gravatar image

OpenCV_Contrib module quality

Hello, I am using 'https://github.com/opencv/opencv_contrib/tree/master/modules/quality' for image quality assessment . When i write following code in main() function and execute I got an error.

Mat img = cv::imread("E:\Images\Slide_02\200131_141613\Tile_0_0_0_0_2.bmp");

String model_path = "E:\VS_Projects\ImageQuality_opencvContrib\ImageQuality_opencvContrib\brisque_model_live.yml";

cv::String range_path = "E:\VS_Projects\ImageQuality_opencvContrib\ImageQuality_opencvContrib\brisque_range_live.yml";

/* compute BRISQUE quality score via static method */
cv::Scalar result_static = quality::QualityBRISQUE::compute(img,model_path, range_path);

Error : e:\opencv_contrib-master\modules\quality\include\opencv2\quality\qualitybrisque.hpp(67): error C2665: 'cv::Ptr<cv::ml::svm>::Ptr': 'cv::Ptr<cv::ml::SVM>::Ptr': none of the 3 overloads could convert all the argument types

types

please suggest me where i am going wrong.