title: Resize an image type "Mat" opencv C++
body: <p>I want to resize my image the code below works when the image is an IplImage but when i change it into Mat i get these errors:
  -Cannot convert 'cv::Mat::depth' from type 'int (cv::Mat::)() const' to type 'int'.
  -Cannot convert 'cv::Mat' to 'const CvArr* {aka const void*}' for argument '1' to 'void cvResize(const CvArr*, CvArr*, int)'.</p>
  
  <pre><code> Mat image=imread("21.png", CV_LOAD_IMAGE_GRAYSCALE);
  Mat dst;
  dst= cvCreateImage(cvSize(150,150),image.depth,image.channels());
  cvResize(image, dst);
  namedWindow("Source", CV_WINDOW_AUTOSIZE );
  imshow("Source", image);
  namedWindow("resize", CV_WINDOW_AUTOSIZE );
  imshow("resize", dst);
  waitKey(0);
      return 0;
  </code></pre>
  
  <p>Can someone please help me? </p>