[mlpack-git] [mlpack/mlpack] backported ind2sub and sub2ind. (#683)

stereomatchingkiss notifications at github.com
Thu Jun 9 12:40:05 EDT 2016


> +      kernel(i) = i + 1;
> +    
> +    kernel(radius) = radius + 1;
> +    
> +    for( size_t i = radius + 1; i < len; ++i)
> +      kernel(i) = i - 1;
> +    return this->sepFilter2D(InImage, kernel, radius);
> +  }
> +}
> +
> +//just a helper function, can't use it for anything else
> +//finds max numbers on cube axis and returns max values,
> +// also stores the locations of max values in Location
> +template<typename MatType, typename CubeType>
> +MatType StructuredForests<MatType, CubeType>::
> +MaxAndLoc(CubeType& mag, arma::umat& Location)

For const correctness
`MaxAndLoc(const CubeType &mag, arma::umat& Location) const`

---
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/683/files/9d85b64c6c6bdff608331195351d09abf56cfc96#r66476646
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160609/05520c23/attachment.html>


More information about the mlpack-git mailing list