17#ifndef __image_adapter_gaussian1D_h__
18#define __image_adapter_gaussian1D_h__
27 template <
class ImageType>
29 public Base<Gaussian1D<ImageType>,ImageType>
37 using base_type::size;
38 using base_type::spacing;
69 if (pos == 0 || pos == size(
axis) - 1)
75 value_type result = 0.0;
76 value_type av_weights = 0.0;
78 for (ssize_t k = from; k <=
to; ++k, ++c) {
81 if (std::isfinite (neighbour_value)) {
100 for (
size_t c = 0; c <
kernel.size(); ++c) {
104 for (
size_t c = 0; c <
kernel.size(); c++) {
vector< default_type > kernel
constexpr I ceil(const T x)
template function with cast to different type
VectorType::Scalar value(const VectorType &coefs, typename VectorType::Scalar cos_elevation, typename VectorType::Scalar cos_azimuth, typename VectorType::Scalar sin_azimuth, int lmax)
MR::default_type value_type
double default_type
the default type used throughout MRtrix
T to(const std::string &string)