18 #ifndef __itkImageHelper_h
19 #define __itkImageHelper_h
50 unsigned int NImageDimension
54 template<
unsigned int NImageDimension,
unsigned int NLoop >
86 index[NLoop] =
static_cast< IndexValueType >( offset / offsetTable[NLoop] );
87 offset = offset - ( index[NLoop] * offsetTable[NLoop] );
88 index[NLoop] = index[NLoop] + bufferedRegionIndex[NLoop];
104 index[0] = bufferedRegionIndex[0] +
static_cast< IndexValueType >( offset );
128 offset = offset + ( index[NLoop] - bufferedRegionIndex[NLoop] ) * offsetTable[NLoop];
144 offset = offset + index[0] - bufferedRegionIndex[0];