18#ifndef itkImageFileReader_h
19#define itkImageFileReader_h
22#include "ITKIOImageBaseExport.h"
74template <
typename TOutputImage,
93 using SizeType =
typename TOutputImage::SizeType;
105 itkSetGetDecoratedInputMacro(FileName, std::string);
121 itkSetMacro(UseStreaming,
bool);
122 itkGetConstReferenceMacro(UseStreaming,
bool);
123 itkBooleanMacro(UseStreaming);
204 DirectionCollapseStrategyEnum::DIRECTIONCOLLAPSETOIDENTITY
224template <
typename TOutputImage,
225 typename ConvertPixelTraits = DefaultConvertPixelTraits<typename TOutputImage::IOPixelType>>
226typename TOutputImage::Pointer
230 reader->SetFileName(filename);
232 return reader->GetOutput();
237#ifndef ITK_MANUAL_INSTANTIATION
238# include "itkImageFileReader.hxx"
241#if defined ITK_IMAGEIO_FACTORY_REGISTER_MANAGER || defined ITK_IO_FACTORY_REGISTER_MANAGER
242# include "itkImageIOFactoryRegisterManager.h"
Base class for all data objects in ITK.
Traits class used to by ConvertPixels to convert blocks of pixels.
void SetDirectionCollapseToStrategy(DirectionCollapseStrategyEnum strategy)
void EnlargeOutputRequestedRegion(DataObject *output) override
void SetImageIO(ImageIOBase *imageIO)
void GenerateOutputInformation() override
void SetDirectionCollapseToIdentity()
void SetDirectionCollapseToSubmatrix()
void SetDirectionCollapseToGuess()
void DoConvertBuffer(const void *inputData, vcl_size_t numberOfPixels)
typename TOutputImage::RegionType ImageRegionType
void GenerateData() override
typename TOutputImage::IndexType IndexType
bool m_UserSpecifiedImageIO
void TestFileExistanceAndReadability()
typename TOutputImage::InternalPixelType OutputImagePixelType
DirectionCollapseStrategyEnum GetDirectionCollapseToStrategy() const
std::string m_ExceptionMessage
typename TOutputImage::SizeType SizeType
ImageSource< TOutputImage > Superclass
DirectionCollapseStrategyEnum m_DirectionCollapseStrategy
ImageIORegion m_ActualIORegion
ExtractImageFilterEnums::DirectionCollapseStrategy DirectionCollapseStrategyEnum
SmartPointer< Self > Pointer
~ImageFileReader() override=default
ImageIOBase::Pointer m_ImageIO
void PrintSelf(std::ostream &os, Indent indent) const override
Abstract superclass defines image IO interface.
SmartPointer< Self > Pointer
An ImageIORegion represents a structured region of data.
Control indentation during Print() invocation.
Implements transparent reference counting.
DirectionCollapseStrategy
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
TOutputImage::Pointer ReadImage(const std::string &filename)