[mlpack-git] [mlpack] add train test split (#523)

stereomatchingkiss notifications at github.com
Tue Mar 1 20:06:52 EST 2016


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

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

Example : 
```
cv::Mat img = cv::imread("ttt.jpg");
//img has 3 channels
cv::arma::mat armaImg;

CopyToArma(img.ptr<uchar>(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..... 
```

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



---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/523#issuecomment-191002850
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160301/54c46371/attachment.html>


More information about the mlpack-git mailing list