18#ifndef itkImageFileReader_h
19#define itkImageFileReader_h
22#include "ITKIOImageBaseExport.h"
73template <
typename TOutputImage,
74 typename ConvertPixelTraits = DefaultConvertPixelTraits<typename TOutputImage::IOPixelType>>
104 itkSetGetDecoratedInputMacro(FileName, std::string);
118 itkSetMacro(UseStreaming,
bool);
119 itkGetConstReferenceMacro(UseStreaming,
bool);
120 itkBooleanMacro(UseStreaming);
160 bool m_UserSpecifiedImageIO{};
163 bool m_UseStreaming{};
166 std::string m_ExceptionMessage{};
183template <
typename TOutputImage,
184 typename ConvertPixelTraits = DefaultConvertPixelTraits<typename TOutputImage::IOPixelType>>
189 reader->SetFileName(filename);
191 return reader->GetOutput();
198#ifndef ITK_MANUAL_INSTANTIATION
199# include "itkImageFileReader.hxx"
202#if defined ITK_IMAGEIO_FACTORY_REGISTER_MANAGER || defined ITK_IO_FACTORY_REGISTER_MANAGER
203# include "itkImageIOFactoryRegisterManager.h"
Base class for all data objects in ITK.
Data source that reads image data from a single file.
void EnlargeOutputRequestedRegion(DataObject *output) override
void SetImageIO(ImageIOBase *imageIO)
void GenerateOutputInformation() override
void DoConvertBuffer(const void *inputData, vcl_size_t numberOfPixels)
typename TOutputImage::RegionType ImageRegionType
void GenerateData() override
typename TOutputImage::IndexType IndexType
void TestFileExistanceAndReadability()
typename TOutputImage::SizeType SizeType
~ImageFileReader() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
Abstract superclass defines image IO interface.
An ImageIORegion represents a structured region of data.
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
Control indentation during Print() invocation.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< Self > Pointer
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
TOutputImage::Pointer ReadImage(const std::string &filename)