title: copyTo() vs clone() inside function?
body: <p>I've just begun learning C++ and OpenCV. I'm trying to make my own function but I'm confused as to why <code>copyTo(dst);</code> works, but when I use <code>dst = src.clone();</code> the displayed output is black?</p>
  
  <pre><code>void testFunc(InputArray _src, OutputArray _dst){
      Mat src = _src.getMat();
      _dst.create(src.size(), src.type());
      Mat dst = _dst.getMat();
      src.copyTo(dst);
      // ^this works but
      // dst = src.clone(); doesn't
  }
  </code></pre>