Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Image quality assessment

Hello, For Image quality assessment i am using https://github.com/FlyingRhenquest/No-Reference-Image-Quality-Assessment-using-BRISQUE-Model/blob/master/README.md

i write following code in main and execute in visual studio 2017 :

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

svm_model *my_model = jd_brisque::load_model("E:/Brisque_cpp/C++/allmodel");

float result = jd_brisque::computescore(image, my_model);

Got following error :

computescore.obj : error LNK2019: unresolved external symbol svm_load_model referenced in function "struct svm_model * __cdecl jd_brisque::load_model(class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> >)" (?load_model@jd_brisque@@YAPEAUsvm_model@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)

computescore.obj : error LNK2019: unresolved external symbol svm_get_nr_class referenced in function "float __cdecl jd_brisque::computescore(class cv::Mat &,struct svm_model *)" (?computescore@jd_brisque@@YAMAEAVMat@cv@@PEAUsvm_model@@@Z)

computescore.obj : error LNK2019: unresolved external symbol svm_predict_probability referenced in function "float __cdecl jd_brisque::computescore(class cv::Mat &,struct svm_model *)" (?computescore@jd_brisque@@YAMAEAVMat@cv@@PEAUsvm_model@@@Z)

These function are not linking with required library. But i already give the path of 'libsvm' in visual studio (project Property -> Linker->General->Additional Library Directories)

Image quality assessment

Hello, For Image quality assessment i am using https://github.com/FlyingRhenquest/No-Reference-Image-Quality-Assessment-using-BRISQUE-Model/blob/master/README.md

i write following code in main and execute in visual studio 2017 :

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

svm_model *my_model = jd_brisque::load_model("E:/Brisque_cpp/C++/allmodel");

float result = jd_brisque::computescore(image, my_model);

Got following error :

computescore.obj : error LNK2019: unresolved external symbol svm_load_model referenced in function "struct svm_model * __cdecl jd_brisque::load_model(class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> >)" (?load_model@jd_brisque@@YAPEAUsvm_model@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)

computescore.obj : error LNK2019: unresolved external symbol svm_get_nr_class referenced in function "float __cdecl jd_brisque::computescore(class cv::Mat &,struct svm_model *)" (?computescore@jd_brisque@@YAMAEAVMat@cv@@PEAUsvm_model@@@Z)

computescore.obj : error LNK2019: unresolved external symbol svm_predict_probability referenced in function "float __cdecl jd_brisque::computescore(class cv::Mat &,struct svm_model *)" (?computescore@jd_brisque@@YAMAEAVMat@cv@@PEAUsvm_model@@@Z)

These function are not linking with required library. But i already give the path of 'libsvm' in visual studio (project Property -> Linker->General->Additional Library Directories)

click to hide/show revision 3
None

updated 2020-03-26 03:41:43 -0600

berak gravatar image

Image quality assessment

Hello, For Image quality assessment i am using https://github.com/FlyingRhenquest/No-Reference-Image-Quality-Assessment-using-BRISQUE-Model/blob/master/README.md

i write following code in main and execute in visual studio 2017 :

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

imread("E:\\Images\\Slide_02\\200131_141613\\Tile_0_0_0_0_2.bmp");

svm_model *my_model = jd_brisque::load_model("E:/Brisque_cpp/C++/allmodel");

jd_brisque::load_model("E:/Brisque_cpp/C++/allmodel");

float result = jd_brisque::computescore(image, my_model);

my_model);

Got following error :

computescore.obj : error LNK2019: unresolved external symbol svm_load_model referenced in function "struct svm_model * __cdecl jd_brisque::load_model(class std::basic_string<char,struct std::char_traits<char="">,class std::char_traits<char>,class std::allocator<char> >)" (?load_model@jd_brisque@@YAPEAUsvm_model@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)

(?load_model@jd_brisque@@YAPEAUsvm_model@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)

computescore.obj : error LNK2019: unresolved external symbol svm_get_nr_class referenced in function "float __cdecl jd_brisque::computescore(class cv::Mat &,struct svm_model *)" (?computescore@jd_brisque@@YAMAEAVMat@cv@@PEAUsvm_model@@@Z)

(?computescore@jd_brisque@@YAMAEAVMat@cv@@PEAUsvm_model@@@Z)

computescore.obj : error LNK2019: unresolved external symbol svm_predict_probability referenced in function "float __cdecl jd_brisque::computescore(class cv::Mat &,struct svm_model *)" (?computescore@jd_brisque@@YAMAEAVMat@cv@@PEAUsvm_model@@@Z)

(?computescore@jd_brisque@@YAMAEAVMat@cv@@PEAUsvm_model@@@Z)

These function are not linking with required library. But i already give the path of 'libsvm' in visual studio

(project Property -> Linker->General->Additional Library Directories)

Directories)