<p>In <a href="https://github.com/mlpack/mlpack/pull/703#discussion_r68435946">src/mlpack/methods/edge_boxes/feature_extraction_impl.hpp</a>:</p>
<pre style='color:#555'>&gt; +
&gt; +  const size_t nCh = nColorCh + 2 * (1 + numOrient);
&gt; +  FtrDim[0] = std::pow((pSize / shrink) , 2) * nCh;
&gt; +  FtrDim[1] = std::pow(numCell , 2) * (std::pow (numCell, 2) - 1) / 2 * nCh;
&gt; +}
&gt; +
&gt; +/**
&gt; + * Computes distance transform of 1D vector f.
&gt; + * @param f input vector whose distance transform is to be found.
&gt; + * @param n size of the Output vector to be made.
&gt; + * @param inf a large double value.
&gt; + * @param d Output vector which stores distance transform of f.
&gt; + */
&gt; +template&lt;typename MatType, typename CubeType&gt;
&gt; +void StructuredForests&lt;MatType, CubeType&gt;::
&gt; +DistanceTransform1D(const arma::vec&amp; f, const size_t n, const double inf,
</pre>
<p>May I ask what is the algorithm you are using? Thanks</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/703/files/987f0790f745314a2117a87f28a346b05a8a2a2d#r68435946">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFOwMh8H8oFgqQVZMWVBKVYl_ZTfkks5qPBnzgaJpZM4I5X__">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFJLPXPxDILX-QjDnRtWulMQh_IRNks5qPBnzgaJpZM4I5X__.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/703/files/987f0790f745314a2117a87f28a346b05a8a2a2d#r68435946"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>