Sunday, 15 February 2015

c++ - error C3861: 'getGaborKernel': identifier not found -


I am trying to create the following code, but failed due to the following error

  error C3861: 'getGaborKernel': identifier not found  

I have included the required header files and Lib files What could be the problem?

  #include "stdafx.h" #include & lt; Opencv2 / core / core.hpp & gt; #include & lt; Opencv2 / imgproc / imgproc.hpp & gt; #include & lt; Opencv2 / highgui / highgui.hpp & gt; # Include & lt; Math.h> Using namespace cv; using namespace std; Int main (int argc, char * argv []) {mat in = imread ("1.jpg", 0); // load grayscale Mat dest; Mat src_f; In.convertTo (src_f, CV_32F); Exxon ostream care; Int kernel_size = 31; Double sig = 1, th = 0, lm = 1.0, gm = 0.02, ps = 0; Cv :: Mat kernel = getGaborKernel (CV :: size (kernel_size, kernel_size), signature, th, LM, GM, PS); Cv :: filter2D (src_f, dest, CV_32F, kernel); Serie Lieutenant; & Lt; Dest (riket (30,30,10,10)) & lt; & Lt; Endl; // Peeping in Fig Mat; Dest.convertTo (that is, CV_8U, 1.0 / 255.0); Imshow ("k", kernel); Imshow ("d", i.e.); WaitKey (); Return 0; }  

When C ++ misses a prototype, then this issue of an error is. Your source does not explicitly include header files with proper prototype or prototype #ifdef s.

  • Find the hidden header file that you expect it to be the prototype of getGaborKernel .
  • Include show to see the header file actually included. Verify the header found in the first step is in the list.
  • Check the preprocess option in a file to see what preprocessor output happens after all the # processes. In the .i file generated from ifdef s, check that the prototype is not in the output.

  • Unless you encounter a problem, uncheck the two options .i instead of .obj to get the file Pre-process file is important for the option.


No comments:

Post a Comment