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

Marcus Edel notifications at github.com
Wed Jun 15 11:04:12 EDT 2016


> +    // do same for dy.
> +    dy.slice(i).row(0) = InImage.slice(i).row(1) - InImage.slice(i).row(0);
> +    dy.slice(i).row(InImage.n_rows - 1) = InImage.slice(i).row(InImage.n_rows - 1)
> +                                        - InImage.slice(i).row(InImage.n_rows - 2);
> +
> +    for (size_t j = 1; j < InImage.n_rows-1; j++)
> +      dy.slice(i).row(j) = 0.5 * ( InImage.slice(i).row(j+1) - InImage.slice(i).row(j) );
> +  }  
> +
> +  CubeType mag(InImage.n_rows, InImage.n_cols, InImage.n_slices);
> +  for (size_t i = 0; i < InImage.n_slices; ++i)
> +  {
> +    mag.slice(i) = arma::sqrt( arma::square \
> +                  ( dx.slice(i) + arma::square( dy.slice(i) ) ) );
> +  }
> +

Do you think we could use the sobel convolution kernel here? 

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


More information about the mlpack-git mailing list