[mlpack-git] [mlpack/mlpack] edge_boxes: feature extraction updated, tests added (#696)

stereomatchingkiss notifications at github.com
Wed Jun 15 12:09:49 EDT 2016


> +{
> +
> +}
> +
> +template<typename MatType, typename CubeType>
> +MatType StructuredForests<MatType, CubeType>::
> +LoadData(MatType const &images, MatType const &boundaries,\
> +     MatType const &segmentations)
> +{
> +  const size_t num_images = this->options["num_images"];
> +  const size_t row_size = this->options["row_size"];
> +  const size_t col_size = this->options["col_size"];
> +  MatType input_data(num_images * row_size * 5, col_size);
> +  // we store the input data as follows: 
> +  // images (3), boundaries (1), segmentations (1).
> +  size_t loop_iter = num_images * 5;

Good idea, this could save a lot of memory

---
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#r67193138
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160615/0e99fd0b/attachment.html>


More information about the mlpack-git mailing list