18 #ifndef __itkMetaArrayWriter_h
19 #define __itkMetaArrayWriter_h
25 #include "metaArray.h"
47 itkSetStringMacro(FileName);
50 itkGetStringMacro(FileName);
55 itkSetStringMacro(DataFileName);
58 itkGetStringMacro(DataFileName);
61 itkSetMacro(Binary,
bool);
65 itkGetConstMacro(Binary,
bool);
68 template<
typename TValueType >
69 void SetInput(MET_ValueEnumType _metaElementType,
72 m_Buffer = (
const void *)( _array->data_block() );
79 template<
typename TValueType,
unsigned int VLength >
80 void SetInput(MET_ValueEnumType _metaElementType,
90 template<
typename TValueType,
unsigned int VLength >
91 void SetInput(MET_ValueEnumType _metaElementType,
101 template<
typename TValueType,
unsigned int VLength >
112 template<
typename TValueType >
129 template<
typename TValueType >
135 int cols = ( *_array )[0].GetSize();
145 for (
int i = 0; i < rows; i++ )
147 for (
int j = 0; j < cols; j++ )
149 m_MetaArray.ElementData( i * cols + j, (
double)( ( *_array )[i][j] ) );
155 itkSetMacro(Precision,
unsigned int);
156 itkGetConstMacro(Precision,
unsigned int);
160 void ConvertTo(MET_ValueEnumType _metaElementType);
186 #endif // __itkMetaArrayWriter_h
Array class with size defined at construction time.
Light weight base class for most itk classes.
const TValueType * GetDataPointer() const
SizeValueType GetSize(void) const
Simulate a standard C array with copy semnatics.
Represents an array whose length can be defined at run-time.
A templated class holding a n-Dimensional vector.
ValueType * GetDataPointer()
unsigned int Size(void) const
LightProcessObject is the base class for all process objects (source, filters, mappers) in the Insigh...
Control indentation during Print() invocation.
A templated class holding a n-Dimensional covariant vector.
SizeValueType Size(void) const