This class provides access to the voxel intensities of an image, using sinc interpolation.
More...
template<class ImageType>
class MR::Interp::Sinc< ImageType >
This class provides access to the voxel intensities of an image, using sinc interpolation.
Interpolation is only performed along the first 3 (spatial) axes. The (integer) position along the remaining axes should be set using the template Image class. The spatial coordinates can be set using the functions voxel(), image(), and scanner(). For example:
Interp::Sinc<decltype(input) > interp (input);
interp.scanner (10.2, 3.59, 54.1);
float value = interp.value();
static Image create(const std::string &image_name, const Header &template_header, bool add_to_command_history=true)
The template input class must be usable with this type of syntax:
int xsize = input.size(0);
int ysize = input.size(1);
int zsize = input.size(2);
float v[] = { input.spacing(0), input.spacing(1), input.spacing(2) };
input.index(0) = 0;
input.index(1)--;
input.index(2)++;
float f = input.value();
Eigen::Transform< default_type, 3, Eigen::AffineCompact > transform_type
the type for the affine transform of an image:
Definition at line 70 of file sinc.h.