17#ifndef __image_transform_h__
18#define __image_transform_h__
28 template <
class HeaderType>
30 voxelsize (header.spacing(0), header.spacing(1), header.spacing(2)),
42 const Eigen::DiagonalMatrix<default_type, 3>
voxelsize;
46 template <
class HeaderType>
50 M.translation() = Eigen::Vector3d (
51 -0.5 * (header.size (0)-1) * header.spacing (0),
52 -0.5 * (header.size (1)-1) * header.spacing (1),
53 -0.5 * (header.size (2)-1) * header.spacing (2)
Eigen::Transform< default_type, 3, Eigen::AffineCompact > transform_type
the type for the affine transform of an image: