title: Function inpaint "was not declare in this scope"
body: <p>I'm trying to use the <code>inpaint</code> function in opencv, but I'm getting this error</p>
  
  <pre><code>loadimg.cpp: In function 'int main(int, char**)':
  loadimg.cpp:19:28: error: 'INPAINT_TELEA' is not a member of 'cv'
  loadimg.cpp:19:45: error: 'inpaint' was not declared in this scope
  </code></pre>
  
  <p>From typing this:</p>
  
  <pre><code>C:\Users\Francesco\Desktop\prova&gt;g++ -I"C:\opencv\build\include" 
   -L"C:\opencv\build\x86\mingw\lib" loadimg.cpp -lopencv_core245 -lopencv_highgui245 
   -lopencv_img proc245 -o loadimg
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>#include "opencv2/highgui/highgui.hpp"
  #include "opencv2/imgproc/imgproc.hpp"
  #include &lt;opencv/cv.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;iostream&gt;
  
  using namespace cv;
  using namespace std;
  
  int main(int argc, char** argv)
  {
  
      Mat src = cv::imread("prova.jpg");
      Mat mask;
      cvtColor(src, mask, CV_RGB2GRAY);
      threshold(mask, mask, 220, 255, CV_THRESH_BINARY);
      Mat dst;
      inpaint(src, mask, dst, 1, cv::INPAINT_TELEA);
      imshow("image", dst);
      waitKey(0);
  
      return 0;
  }
  </code></pre>
  
  <p>Can anyone help me? Thank you very much.</p>