title: How Can I Convert the Mat to Int? (c++, Gpu, OpenCV)
body: <p>I'm trying to convert the math to int but it doesn't work. I have searched on the internet about the converting but didn't find anything for me.</p>
  
  <ol>
  <li><p>How can we convert an <code>array</code> to <code>mat</code>?</p></li>
  <li><p>How can we convert <code>mat</code> to an <code>array</code>?</p></li>
  <li><p>What kind of way should I use?</p></li>
  </ol>