[mlpack-git] [mlpack/mlpack] Added the discretize function. Design changes as discussed. (#703)
Tham
notifications at github.com
Fri Jun 24 14:51:43 EDT 2016
> +
> +}
> +
> +/**
> + * Applies a triangle filter on an Image.
> + * @param InImage Input/Output Image on which filter is applied.
> + * @param radius Decides the size of kernel to be applied on Image.
> + */
> +template<typename MatType, typename CubeType>
> +void StructuredForests<MatType, CubeType>::
> +ConvTriangle(CubeType &InImage, const size_t radius)
> +{
> + if (radius == 0)
> + {
> + //nothing to do
> + }
A little bit weird to see empty if, since radius is size_t, you can
```
if(radius != 0){
if(radius == 1){
//.....
}else{
//....
}
}
```
---
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/703/files/987f0790f745314a2117a87f28a346b05a8a2a2d#r68445013
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160624/eef1c7da/attachment.html>
More information about the mlpack-git
mailing list