12 #ifndef mitkVnlVectorCaster_h
13 #define mitkVnlVectorCaster_h
15 #include <vnl/vnl_vector.h>
25 template <
class T,
class R>
34 const vnl_vector<T>* _InputVector,
35 vnl_vector<R>* _OutputVector):
36 m_InputVector(_InputVector),
37 m_OutputVector(_OutputVector)
45 const vnl_vector<T>& _InputVector,
46 vnl_vector<R>& _OutputVector)
48 for(
size_t i=0; i<_InputVector.size(); ++i )
49 _OutputVector[i] =
static_cast<R
>( _InputVector[i] );
57 Update( *m_InputVector, *m_OutputVector );
63 const vnl_vector<T>* m_InputVector;
67 vnl_vector<R>* m_OutputVector;