19 #ifndef itkFDFImageIO_h 20 #define itkFDFImageIO_h 21 #include "IOFDFExport.h" 50 if( dim == 2 || dim == 3 )
65 virtual bool CanReadFile(
const char*) ITK_OVERRIDE;
68 virtual void ReadImageInformation() ITK_OVERRIDE;
74 virtual void Read(
void* buffer) ITK_OVERRIDE;
77 virtual void ReadVolume(
void* buffer);
88 virtual bool CanWriteFile(
const char*) ITK_OVERRIDE;
92 virtual void WriteImageInformation() ITK_OVERRIDE;
96 virtual void Write(
const void* buffer) ITK_OVERRIDE;
101 void PrintSelf(std::ostream& os,
Indent indent)
const ITK_OVERRIDE;
103 void WriteSlice(std::string& fileName,
const void* buffer);
105 int ReadHeader(
const char *FileNameToRead);
109 void operator=(
const Self&);
111 void SwapBytesIfNecessary(
void* buffer,
unsigned long numberOfPixels);
128 #define RAISE_EXCEPTION() \ 129 { ExceptionObject exception(__FILE__, __LINE__); \ 130 exception.SetDescription("File cannot be read"); \
Abstract superclass defines image IO interface.
std::vector< float > m_Location
std::vector< float > m_Span
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
std::string m_SpatialRank
ImageIO object for reading and writing FDF images.
SmartPointer< Self > Pointer
vcl_size_t m_InputPosition
std::vector< float > m_Roi
std::vector< int > m_Size
Control indentation during Print() invocation.
virtual bool SupportsDimension(unsigned long dim) override