12 #ifndef mitkVnlVectorFixedCaster_h 13 #define mitkVnlVectorFixedCaster_h 15 #include <vnl/vnl_vector_fixed.h> 25 template <
class T,
class R,
unsigned int n>
34 const vnl_vector_fixed<T, n>* _InputVector,
35 vnl_vector_fixed<R, n>* _OutputVector):
36 m_InputVector(_InputVector),
37 m_OutputVector(_OutputVector)
45 for(
size_t i=0; i<m_InputVector->size(); ++i )
46 (*m_OutputVector)[i] =
static_cast<R
>( (*m_InputVector)[i] );
53 const vnl_vector_fixed<T, n>* m_InputVector;
57 vnl_vector_fixed<R, n>* m_OutputVector;
61 #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)