title: Main.cpp(19): fatal error C1083: Cannot open include file: 'opencv2/nonfree/nonfree.hpp': No such file or directory
body: <p>I am testing this code, I installed OpenCV-3.0.0_2 But It gives an error :</p>
  
  <p>Main.cpp(19): fatal error C1083: Cannot open include file: 'opencv2/nonfree/nonfree.hpp': No such file or directory
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</p>
  
  <p>Is it possible that this error is due to the version of openCV? </p>
  
  <p>This is a portion of code to be test</p>
  
  <pre><code>//Include statements
  #include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;string&gt;
  #include &lt;opencv2/core/core.hpp&gt;
  #include &lt;opencv2/highgui/highgui.hpp&gt;
  #include &lt;opencv2/opencv.hpp&gt;
  #include "opencv2/features2d/features2d.hpp"
  #include "opencv2/imgproc/imgproc.hpp"
  #include "opencv2/calib3d/calib3d.hpp"
  #include "opencv2/nonfree/nonfree.hpp" ///Here is the error
  
  //Name spaces used
  using namespace cv;
  using namespace std;
  
  int main()
  {
      //turn performance analysis functions on if testing = true
      bool testing=false;
      double t; //timing variable
  
      //load training image
      Mat object = imread ("C:/School/Image Processing/book.jpg", CV_LOAD_IMAGE_GRAYSCALE);
      if (!object.data){
          cout&lt;&lt;"Can't open image";
          return -1;
      }
  </code></pre>
  
  <p>.
  .
  .
  .
  .</p>