<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'>> +
> + 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,
</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;">—<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>