<p>In <a href="https://github.com/mlpack/mlpack/pull/696#discussion_r67201502">src/mlpack/methods/edge_boxes/feature_extraction_impl.hpp</a>:</p>
<pre style='color:#555'>> + 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)
</pre>
<p>According to <a href="http://stackoverflow.com/questions/20016600/negative-infinity">http://stackoverflow.com/questions/20016600/negative-infinity</a> it should be safe to use <code>-DBL_MAX</code> and <code>DBL_MAX</code>.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/696/files/b38b688edfc4c2ee8bf461240f8384a70575d3a4#r67201502">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFOKi3FIQtt0RzCBw-_1Wu5cu2jfaks5qMC8AgaJpZM4I1lnr">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBUYAYdtRDqQiC5G3X4T7ubJ8Zfdks5qMC8AgaJpZM4I1lnr.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/696/files/b38b688edfc4c2ee8bf461240f8384a70575d3a4#r67201502"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>