18 #ifndef __itkImageFileReader_h
19 #define __itkImageFileReader_h
20 #include "ITKIOImageBaseExport.h"
44 const char *message =
"Error in IO",
45 const char *loc =
"Unknown"):
51 const char *message =
"Error in IO",
52 const char *loc =
"Unknown"):
101 template<
typename TOutputImage,
102 typename ConvertPixelTraits = DefaultConvertPixelTraits<
103 typename TOutputImage::IOPixelType > >
119 typedef typename TOutputImage::SizeType
SizeType;
131 itkSetGetDecoratedInputMacro(FileName, std::string);
145 virtual void GenerateOutputInformation(
void);
152 virtual void EnlargeOutputRequestedRegion(
DataObject *output);
155 itkSetMacro(UseStreaming,
bool);
156 itkGetConstReferenceMacro(UseStreaming,
bool);
157 itkBooleanMacro(UseStreaming);
163 void PrintSelf(std::ostream & os,
Indent indent)
const;
166 void DoConvertBuffer(
void *buffer,
size_t numberOfPixels);
173 void TestFileExistanceAndReadability();
176 virtual void GenerateData();
187 void operator=(
const Self &);
197 #ifndef ITK_MANUAL_INSTANTIATION
198 #include "itkImageFileReader.hxx"
201 #ifdef ITK_IO_FACTORY_REGISTER_MANAGER
202 #include "itkImageIOFactoryRegisterManager.h"
205 #endif // __itkImageFileReader_h
std::string m_ExceptionMessage
Base exception class for IO conflicts.
TOutputImage::RegionType ImageRegionType
TOutputImage::IndexType IndexType
An ImageIORegion represents a structured region of data.
Abstract superclass defines image IO interface.
TOutputImage::SizeType SizeType
Base class for all process objects that output image data.
SmartPointer< Self > Pointer
ImageSource< TOutputImage > Superclass
TOutputImage::InternalPixelType OutputImagePixelType
Standard exception handling object.
Data source that reads image data from a single file.
ImageIOBase::Pointer m_ImageIO
ImageFileReaderException(const std::string &file, unsigned int line, const char *message="Error in IO", const char *loc="Unknown")
Control indentation during Print() invocation.
virtual ~ImageFileReaderException()
ImageFileReaderException(const char *file, unsigned int line, const char *message="Error in IO", const char *loc="Unknown")
bool m_UserSpecifiedImageIO
ImageIORegion m_ActualIORegion
Base class for all data objects in ITK.