18 #ifndef itkImageTransformHelper_h
19 #define itkImageTransformHelper_h
24 #include "vnl/vnl_math.h"
32 template<
unsigned int NImageDimension,
unsigned int R,
unsigned int C,
typename TPo
intValue =
double,
typename TMatrixValue=
double >
33 class ImageTransformHelper
98 point[R] = point[R] + matrix[R][C] * index[C];
126 point, rindex, index,
140 point, rindex, index,
146 point, rindex, index,
163 rindex[R] = rindex[R] + matrix[R][C] * ( point[C] - origin[C] );
169 point, rindex, index,
178 index[R] = Math::RoundHalfIntegerUp< IndexValueType >(rindex[R]);
204 point[R] = origin[R];
233 point[R] = point[R] + matrix[R][C] * index[C];
261 point, rindex, index,
275 point, rindex, index,
281 point, rindex, index,
298 rindex[R] = rindex[R] + matrix[R][C] * ( point[C] - origin[C] );
304 point, rindex, index,
313 index[R] = Math::RoundHalfIntegerUp< IndexValueType >(rindex[R]);
A templated class holding a M x N size Matrix.
Base class for templated image classes.