17 #ifndef __itkMetaArrayWriter_h
18 #define __itkMetaArrayWriter_h
26 #include "metaArray.h"
49 itkSetStringMacro(FileName);
52 itkGetStringMacro(FileName);
57 itkSetStringMacro(DataFileName);
60 itkGetStringMacro(DataFileName);
63 itkSetMacro(Binary,
bool);
66 itkGetConstMacro(Binary,
bool);
69 template <
typename TValueType>
70 void SetInput(MET_ValueEnumType _metaElementType,
73 m_Buffer = (
const void *)(_array->data_block());
79 template <
typename TValueType,
unsigned int VLength>
80 void SetInput(MET_ValueEnumType _metaElementType,
89 template <
typename TValueType,
unsigned int VLength>
90 void SetInput(MET_ValueEnumType _metaElementType,
99 template <
typename TValueType,
unsigned int VLength>
109 template <
typename TValueType>
125 template <
typename TValueType>
127 int _NumberOfChannels,
131 int cols = (*_array)[0].GetSize();
139 for(
int i=0; i<rows; i++)
141 for(
int j=0; j<cols; j++)
143 m_MetaArray.ElementData(i*cols+j, (
double)((*_array)[i][j]));
150 itkSetMacro(Precision,
unsigned int);
151 itkGetConstMacro(Precision,
unsigned int);
154 void ConvertTo(MET_ValueEnumType _metaElementType);
182 #endif // __itkMetaArrayWriter_h