16 #ifndef mitkVnlVectorFixedCaster_h
17 #define mitkVnlVectorFixedCaster_h
19 #include <vnl/vnl_vector_fixed.h>
29 template <
class T,
class R,
unsigned int n>
38 const vnl_vector_fixed<T, n>* _InputVector,
39 vnl_vector_fixed<R, n>* _OutputVector):
40 m_InputVector(_InputVector),
41 m_OutputVector(_OutputVector)
49 for(
size_t i=0; i<m_InputVector->size(); ++i )
50 (*m_OutputVector)[i] =
static_cast<R
>( (*m_InputVector)[i] );
57 const vnl_vector_fixed<T, n>* m_InputVector;
61 vnl_vector_fixed<R, n>* m_OutputVector;
65 #endif // mitkVnlVectorFixedCaster_h
DataCollection - Class to facilitate loading/accessing structured data.
VnlVectorFixedCaster(const vnl_vector_fixed< T, n > *_InputVector, vnl_vector_fixed< R, n > *_OutputVector)