[mlpack-git] [mlpack/mlpack] Added the discretize function. Design changes as discussed. (#703)

Marcus Edel notifications at github.com
Sun Jun 26 06:52:43 EDT 2016


> + * RGB must range in (0.0, 1.0).
> + * @param InImage Input Image in RGB color space.
> + * @param OutImage Ouptut Image in LUV color space.
> + */
> +template<typename MatType, typename CubeType>
> +void StructuredForests<MatType, CubeType>::
> +RGB2LUV(const CubeType& InImage, CubeType& OutImage,\
> +        const arma::vec& table)
> +{
> +  //assert type is double or float.
> +
> +
> +  MatType rgb2xyz;
> +  rgb2xyz << 0.430574 << 0.222015 << 0.020183 << arma::endr
> +          << 0.341550 << 0.706655 << 0.129553 << arma::endr
> +          << 0.178325 << 0.071330 << 0.939180;

I think what @stereomatchingkiss meant was, that ``rgb2xyz`` is unused, so we could delete the parameter.

---
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/703/files/987f0790f745314a2117a87f28a346b05a8a2a2d#r68501192
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160626/ea274758/attachment.html>


More information about the mlpack-git mailing list