[mlpack-git] [mlpack/mlpack] edge_boxes: feature extraction updated, tests added (#696)
Marcus Edel
notifications at github.com
Wed Jun 15 12:33:20 EDT 2016
> + CubeType inc_ch = this->CopyMakeBorder(channels, p, p, p, p);
> + for (size_t i = 0, channel = 0; i < loc.n_rows; ++i)
> + {
> + size_t x = loc(i, 0);
> + size_t y = loc(i, 1);
> +
> + /*(x,y) in channels, is ((x+p), (y+p)) in inc_ch*/
> + //cout << "(x,y) = " << x << " " << y << endl;
> + CubeType patch = inc_ch.tube((x + p) - p, (y + p) - p,\
> + (x + p) + p - 1, (y + p) + p - 1);
> + // since each patch has 13 channel we have to increase the index by 13
> +
> + //cout <<"patch size = " << arma::size(patch) << endl;
> +
> + features.slices(channel, channel + 12) = patch;
> + //cout << "sahi hai " << endl;
Meaning: "it is correct" (Hindi)
---
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#r67197393
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160615/408c5524/attachment.html>
More information about the mlpack-git
mailing list