<p>In <a href="https://github.com/mlpack/mlpack/pull/696#discussion_r67196378">src/mlpack/methods/edge_boxes/feature_extraction_impl.hpp</a>:</p>
<pre style='color:#555'>&gt; +  if (this-&gt;options[&quot;rgbd&quot;] == 0)
&gt; +    n_color_ch = 3;
&gt; +  else
&gt; +    n_color_ch = 4;
&gt; +
&gt; +  const size_t n_grad_ch = 2 * (1 + n_orient);
&gt; +
&gt; +  const size_t n_ch = n_color_ch + n_grad_ch;
&gt; +  FtrDim[0] = std::pow((p_size / shrink) , 2) * n_ch;
&gt; +  FtrDim[1] = std::pow(n_cell , 2) * (std::pow (n_cell, 2) - 1) / 2 * n_ch;
&gt; +  return FtrDim;
&gt; +}
&gt; +
&gt; +template&lt;typename MatType, typename CubeType&gt;
&gt; +arma::vec StructuredForests&lt;MatType, CubeType&gt;::
&gt; +DistanceTransform1D(arma::vec const &amp;f, const size_t n, const double inf)
</pre>
<p>Using DBL_MAX would overflow double and give error. Thats why i did not use it here.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<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#r67196378">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFDOcqxPcmTyQVIKSBxF54P6X4UrUks5qMCfugaJpZM4I1lnr">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFNDAYOso4s9zTvPSzr4gb_WJYvPtks5qMCfugaJpZM4I1lnr.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#r67196378"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>