[mlpack-git] [mlpack/mlpack] edge_boxes: feature extraction updated, tests added (#696)
Marcus Edel
notifications at github.com
Wed Jun 15 12:57:36 EDT 2016
> + if (this->options["rgbd"] == 0)
> + n_color_ch = 3;
> + else
> + n_color_ch = 4;
> +
> + const size_t n_grad_ch = 2 * (1 + n_orient);
> +
> + const size_t n_ch = n_color_ch + n_grad_ch;
> + FtrDim[0] = std::pow((p_size / shrink) , 2) * n_ch;
> + FtrDim[1] = std::pow(n_cell , 2) * (std::pow (n_cell, 2) - 1) / 2 * n_ch;
> + return FtrDim;
> +}
> +
> +template<typename MatType, typename CubeType>
> +arma::vec StructuredForests<MatType, CubeType>::
> +DistanceTransform1D(arma::vec const &f, const size_t n, const double inf)
According to http://stackoverflow.com/questions/20016600/negative-infinity it should be safe to use ``-DBL_MAX`` and ``DBL_MAX``.
---
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/696/files/b38b688edfc4c2ee8bf461240f8384a70575d3a4#r67201502
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160615/67f913b6/attachment.html>
More information about the mlpack-git
mailing list