[mlpack-git] [mlpack/mlpack] backported ind2sub and sub2ind. (#683)
stereomatchingkiss
notifications at github.com
Thu Jun 9 11:49:29 EDT 2016
> + for(size_t k = 0; k < rgb2xyz.n_cols; ++k)
> + {
> + double s = 0.0;
> + for(size_t l = 0; l < InImage.n_slices; ++l)
> + s += InImage(i, j, l) * rgb2xyz(l, k);
> + xyz(i, j, k) = s;
> + }
> + }
> + }
> +
> + MatType nz(InImage.n_rows, InImage.n_cols);
> +
> + nz = 1.0 / ( xyz.slice(0) + (15 * xyz.slice(1) ) +
> + (3 * xyz.slice(2) + EPS));
> +
> + MatType L = arma::reshape(L, xyz.n_rows, xyz.n_cols);
Where is the L come from?
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/683/files/9d85b64c6c6bdff608331195351d09abf56cfc96#r66467426
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160609/b20ca64a/attachment.html>
More information about the mlpack-git
mailing list