18 #ifndef __itkScaleTransform_h
19 #define __itkScaleTransform_h
42 typename TScalar = float,
44 unsigned int NDimensions = 3>
240 template <
typename ScalarType,
unsigned int NDimensions>
247 for(
unsigned int i = 0; i < SpaceDimension; i++ )
249 result[i] = ( point[i] + m_Center[i] ) / m_Scale[i] - m_Center[i];
255 template <
typename ScalarType,
unsigned int NDimensions>
262 for(
unsigned int i = 0; i < SpaceDimension; i++ )
264 result[i] = vect[i] / m_Scale[i];
270 template <
typename ScalarType,
unsigned int NDimensions>
277 for(
unsigned int i = 0; i < SpaceDimension; i++ )
279 result[i] = vect[i] / m_Scale[i];
285 template <
typename ScalarType,
unsigned int NDimensions>
293 for(
unsigned int i = 0; i < SpaceDimension; i++ )
295 result[i] = vect[i] * m_Scale[i];
302 #ifndef ITK_MANUAL_INSTANTIATION
303 #include "itkScaleTransform.hxx"
Light weight base class for most itk classes.
void Fill(const ValueType &)
virtual void Modified() const
Control indentation during Print() invocation.
A templated class holding a n-Dimensional covariant vector.