title: OpenCV: Resizing an Image
body: <p>I seem to miss something but I cannot understand how to resize an image. Here is code:</p>
  
  <pre><code>#include &lt;opencv2\core\core.hpp&gt;
  #include &lt;opencv2\imgproc\imgproc.hpp&gt;
  #include &lt;opencv2\highgui\highgui.hpp&gt;
  
  using namespace cv;
  
  int main(int argc, char* argv[])
  {
      IplImage* src = NULL;
      IplImage* dst = NULL;
      src = cvLoadImage("image.tif");
      dst = cvCreateImage(cvSize( src-&gt;width / 10, src-&gt;height / 10 ), src-&gt;depth, src-&gt;nChannels );
  
      resize(src, dst, dst-&gt;nSize, 0.1, 0.1, CV_INTER_AREA );
  
      return 0;
  }
  </code></pre>
  
  <p>But this code only results into the compiler error:</p>
  
  <pre><code>error C2664: 'cv::resize' : cannot convert parameter 1 from 'IplImage *' to 'cv::InputArray'
  </code></pre>
  
  <p>Can someone tell me what's wrong here? I mean how can I create an InputArray from an IplImage?</p>
  
  <p>Thanks,
  Christian</p>