18 #ifndef __itkNthElementPixelAccessor_h
19 #define __itkNthElementPixelAccessor_h
51 template<
class T,
class TContainer >
74 unsigned int GetElementNumber(
void)
const
75 {
return m_ElementNumber; }
78 void SetElementNumber(
unsigned int nth)
79 { m_ElementNumber = nth; }
107 template<
class TOutputPixelType,
class TPixelType >
126 output[m_ElementNumber] = input;
130 const unsigned long offset)
const
132 return Set( Superclass::Get( output, offset ), input );
139 output =
static_cast< ExternalType >( input[m_ElementNumber] );
145 return Get( Superclass::Get(input, offset) );
150 unsigned int GetElementNumber(
void)
const
151 {
return m_ElementNumber; }
154 void SetElementNumber(
unsigned int nth)
155 { m_ElementNumber = nth; }
160 Superclass::SetVectorLength( l );
169 Superclass::SetVectorLength( length );