[mlpack-git] [mlpack/mlpack] backported ind2sub and sub2ind. (#683)

stereomatchingkiss notifications at github.com
Thu Jun 9 11:55:56 EDT 2016


> +      = OutImage.slice(i).row(2 * top - 1 - j);
> +    }
> +     
> +    for(int j = 0; j < bottom; j++)
> +    {
> +      OutImage.slice(i).row(InImage.n_rows + top + j)
> +      = OutImage.slice(i).row(InImage.n_rows + top - j - 1);
> +    }
> +
> +  }
> +  return OutImage;  
> +}
> +
> +template<typename MatType, typename CubeType>
> +CubeType StructuredForests<MatType, CubeType>::
> +RGB2LUV(CubeType& InImage)

nice candidate to declare as const too

---
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#r66468706
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160609/b353a86e/attachment.html>


More information about the mlpack-git mailing list