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

Marcus Edel notifications at github.com
Wed Jun 15 13:56:53 EDT 2016


> +  const size_t csize = OutImage.n_cols / shrink;
> +
> +  /* this part gives double free or corruption out error
> +     when executed for a second time */
> +  CubeType reg_ch = CubeType(rsize, csize, num_channels);
> +  CubeType ss_ch = CubeType(rsize, csize, num_channels);
> +  this->GetShrunkChannels(InImage, reg_ch, ss_ch);
> +  
> +  loc /= shrink;
> +
> +  CubeType reg_ftr = this->GetRegFtr(reg_ch, loc);
> +  CubeType ss_ftr = this->GetSSFtr(ss_ch, loc);
> +  arma::field<CubeType> F(2,1);
> +  F(0,0) = reg_ftr;
> +  F(1,0) = ss_ftr;
> +  return F;

Perfect, thanks for the clarification.

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


More information about the mlpack-git mailing list