<p>In <a href="https://github.com/mlpack/mlpack/pull/696#discussion_r67056490">src/mlpack/methods/edge_boxes/feature_extraction.hpp</a>:</p>
<pre style='color:#555'>> + const double inf);
> +
> + void DistanceTransform2D(MatType &im, const double inf);
> +
> + MatType DistanceTransformImage(MatType const &im, double on);
> +
> + arma::field<CubeType> GetFeatures(MatType const &image, arma::umat &loc);
> +
> + CubeType CopyMakeBorder(CubeType const &InImage, size_t top,
> + size_t left, size_t bottom, size_t right);
> +
> + void GetShrunkChannels(CubeType const &InImage, CubeType &reg_ch, CubeType &ss_ch);
> +
> + CubeType RGB2LUV(CubeType const &InImage);
> +
> + MatType bilinearInterpolation(MatType const &src,
</pre>
<p>If you make the output matrix part of the function parameters you could avoid unnecessary object copies:</p>
<p><code><br>
void bilinearInterpolation(MatType const &src, MatType& output, size_t height, size_t width);<br>
</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#r67056490">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFMtHm6oi5deR8xvtfhFRcgt3HUTqks5qLxcXgaJpZM4I1lnr">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFIY_sDHnsAp_76baSDNcQR6E1UeIks5qLxcXgaJpZM4I1lnr.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#r67056490"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>