[mlpack-git] [mlpack/mlpack] edge_boxes: feature extraction updated, tests added (#696)
Marcus Edel
notifications at github.com
Wed Jun 15 12:16:42 EDT 2016
> +
> + this->Gradient(OutImage, Magnitude, Orientation);
> +
> + size_t downscale = std::max(1, (int)(shrink * scale));
> +
> + CubeType Hist = this->Histogram(Magnitude, Orientation,
> + downscale, 0);
> +
> + channels.slice(slice_idx) =
> + bilinearInterpolation( Magnitude, rsize, csize);
> + slice_idx++;
> + for(size_t i = 0; i < InImage.n_slices; ++i)
> + channels.slice(i + slice_idx) =
> + bilinearInterpolation( Magnitude, rsize, csize);
> + slice_idx += 3;
> + scale += 0.5;
I would recommend to use ``slice_idx += n_slices``instead of ``slice_idx += 3;`` there is no guarantee that we call the function with a 3 channel image.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/696/files/b38b688edfc4c2ee8bf461240f8384a70575d3a4#r67194489
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160615/19b1e3bc/attachment.html>
More information about the mlpack-git
mailing list