<blockquote>
<p>If we decide to support cubes, should we also support that a set could be more than one slice?</p>
</blockquote>

<p>Do you mean you want to provide a function to let the users copy n channels image into arma::mat?</p>

<p>Example : </p>

<pre><code>cv::Mat img = cv::imread("ttt.jpg");
//img has 3 channels
cv::arma::mat armaImg;

CopyToArma(img.ptr&lt;uchar&gt;(0),  armaImg, img.rows, img.cols, img.channels);

//layout of armaImg will be
//b b b b b b b b.....
//g g g g g g g g.....
//r  r  r  r  r  r  r  r..... 
</code></pre>

<p>Different libraries has different way to store their data, do we need to take care of that too?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/523#issuecomment-191002850">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFFsSf5JptmWdgzZ8nsBhIyzHqR7Dks5ppOKsgaJpZM4HhWF3.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/523#issuecomment-191002850"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>