17#ifndef __image_adapter_normalise3D_h__
18#define __image_adapter_normalise3D_h__
28 template <
class ImageType>
30 public Base<Normalise3D<ImageType>,ImageType>
39 using base_type::size;
54 for (
size_t i = 0; i < ext.size(); ++i)
55 if (! (ext[i] & uint32_t(1)))
56 throw Exception (
"expected odd number for extent");
57 if (ext.size() != 1 && ext.size() != 3)
58 throw Exception (
"unexpected number of elements specified in extent");
64 DEBUG (
"normalise3D adapter for image \"" +
name() +
"\" initialised with extent " +
str(
extent));
66 for (
size_t i = 0; i < 3; ++i)
78 const ssize_t from[3] = {
83 const ssize_t
to[3] = {
99 index(0) = old_pos[0];
100 index(1) = old_pos[1];
101 index(2) = old_pos[2];
vector< uint32_t > extent
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
std::string str(const T &value, int precision=0)
T to(const std::string &string)