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

Tham notifications at github.com
Fri Jun 24 13:54:59 EDT 2016


> +
> +  const size_t nCh = nColorCh + 2 * (1 + numOrient);
> +  FtrDim[0] = std::pow((pSize / shrink) , 2) * nCh;
> +  FtrDim[1] = std::pow(numCell , 2) * (std::pow (numCell, 2) - 1) / 2 * nCh;
> +}
> +
> +/**
> + * Computes distance transform of 1D vector f.
> + * @param f input vector whose distance transform is to be found.
> + * @param n size of the Output vector to be made.
> + * @param inf a large double value.
> + * @param d Output vector which stores distance transform of f.
> + */
> +template<typename MatType, typename CubeType>
> +void StructuredForests<MatType, CubeType>::
> +DistanceTransform1D(const arma::vec& f, const size_t n, const double inf,

May I ask what is the algorithm you are using? Thanks

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


More information about the mlpack-git mailing list