I am tying to compare two histograms, but it gives error. Here I have given my code, histogram file and error message. Histogram file 3*5 matrix(output_test.txt):
1 2 3 4 5
5 2 1 4 2
2 1 2 4 2
Mat first_histogram(1,feature_vector_size, CV_32F);
Mat second_histogram(1,feature_vector_size, CV_32F);
Error message: error LNK2019: unresolved external symbol "double __cdecl cv::compareHist(class cv::Mat const &,class cv::Mat const &,int)" (?compareHist@cv@@YANABVMat@1@0H@Z) Is there anybody who can help in this regard?
You need to link against `opencv_imgproc'
Actually I don`t understand link against `opencv_imgproc'. How can I link opencv_imgproc?
My include file condition is given below:
Thank you. But how can I configure it in Windows 7 VC++2010?
Anyway, I have solved the problem. I include "opencv_imgproc220d.lib" in additional library dependencies in VC++2010.
Last edited on