#include <itkImageSeriesReader.h>
Data source that reads image data from a series of disk files.
This class builds an n-dimension image from multiple n-1 dimension image files. The files stored in a vector of strings are read using the ImageFileReader. File format may vary between the files, but the image data must have the same Size for all dimensions.
Definition at line 45 of file itkImageSeriesReader.h.
Inheritance diagram for itk::ImageSeriesReader< TOutputImage >:
Collaboration diagram for itk::ImageSeriesReader< TOutputImage >:Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
| static bool | GetGlobalWarningDisplay () |
| static void | GlobalWarningDisplayOff () |
| static void | GlobalWarningDisplayOn () |
| static Pointer | New () |
| static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
| static void | BreakOnError () |
| static Pointer | New () |
Protected Attributes | |
| FileNamesContainer | m_FileNames {} |
| bool | m_ForceOrthogonalDirection { true } |
| ImageIOBase::Pointer | m_ImageIO {} |
| unsigned int | m_NumberOfDimensionsInImage { 0 } |
| bool | m_ReverseOrder { false } |
| bool | m_SpacingDefined { false } |
| double | m_SpacingWarningRelThreshold { 1e-4 } |
| bool | m_UseStreaming { true } |
Protected Attributes inherited from itk::ImageSource< TOutputImage > | |
| bool | m_DynamicMultiThreading { true } |
Protected Attributes inherited from itk::ProcessObject | |
| TimeStamp | m_OutputInformationMTime {} |
| bool | m_Updating {} |
Protected Attributes inherited from itk::LightObject | |
| std::atomic< int > | m_ReferenceCount {} |
Private Types | |
| using | ReaderType = ImageFileReader<TOutputImage> |
Private Member Functions | |
| int | ComputeMovingDimensionIndex (ReaderType *reader) |
Private Attributes | |
| std::vector< MetaDataDictionary > | m_InternalMetaDataDictionaries {} |
| DictionaryArrayType | m_MetaDataDictionaryArray {} |
| TimeStamp | m_MetaDataDictionaryArrayMTime {} |
| bool | m_MetaDataDictionaryArrayUpdate { true } |
Additional Inherited Members | |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
| static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
| static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
| static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
Static Protected Member Functions inherited from itk::ProcessObject | |
| template<typename TSourceObject> | |
| static void | MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs) |
| static constexpr float | progressFixedToFloat (uint32_t fixed) |
| static uint32_t | progressFloatToFixed (float f) |
| using itk::ImageSeriesReader< TOutputImage >::DictionaryArrayRawPointer = const DictionaryArrayType * |
Definition at line 77 of file itkImageSeriesReader.h.
| using itk::ImageSeriesReader< TOutputImage >::DictionaryArrayType = std::vector<DictionaryRawPointer> |
Definition at line 76 of file itkImageSeriesReader.h.
| using itk::ImageSeriesReader< TOutputImage >::DictionaryRawPointer = MetaDataDictionary * |
Definition at line 75 of file itkImageSeriesReader.h.
| using itk::ImageSeriesReader< TOutputImage >::DictionaryType = MetaDataDictionary |
The pixel type of the output image.
Definition at line 74 of file itkImageSeriesReader.h.
| using itk::ImageSeriesReader< TOutputImage >::FileNamesContainer = std::vector<std::string> |
Definition at line 79 of file itkImageSeriesReader.h.
| using itk::ImageSeriesReader< TOutputImage >::ImageRegionType = typename TOutputImage::RegionType |
The region of the output image.
Definition at line 68 of file itkImageSeriesReader.h.
| using itk::ImageSeriesReader< TOutputImage >::IndexType = typename TOutputImage::IndexType |
The index of the output image.
Definition at line 65 of file itkImageSeriesReader.h.
| using itk::ImageSeriesReader< TOutputImage >::OutputImagePixelType = typename TOutputImage::PixelType |
The pixel type of the output image.
Definition at line 71 of file itkImageSeriesReader.h.
| using itk::ImageSeriesReader< TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 53 of file itkImageSeriesReader.h.
|
private |
Definition at line 226 of file itkImageSeriesReader.h.
| using itk::ImageSeriesReader< TOutputImage >::Self = ImageSeriesReader |
Standard class type aliases.
Definition at line 51 of file itkImageSeriesReader.h.
| using itk::ImageSeriesReader< TOutputImage >::SizeType = typename TOutputImage::SizeType |
The size of the output image.
Definition at line 62 of file itkImageSeriesReader.h.
| using itk::ImageSeriesReader< TOutputImage >::Superclass = ImageSource<TOutputImage> |
Definition at line 52 of file itkImageSeriesReader.h.
|
inlineprotected |
Definition at line 188 of file itkImageSeriesReader.h.
References m_ImageIO.
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
inline |
Add a single filename to the list of files.
Definition at line 113 of file itkImageSeriesReader.h.
References m_FileNames, and itk::Object::Modified().
|
private |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::LightObject.
|
overridevirtual |
Give the reader a chance to indicate that it will produce more output than it was requested to produce. ImageSeriesReader cannot currently read a portion of an image (since the ImageIO objects cannot read a portion of an image), so the ImageSeriesReader must enlarge the RequestedRegion to the size of the image on disk.
Reimplemented from itk::ProcessObject.
|
virtual |
Do we want to force orthogonal direction cosines? On by default. Turning it off enables proper reading of DICOM series with gantry tilt.
|
virtual |
Do we want to force orthogonal direction cosines? On by default. Turning it off enables proper reading of DICOM series with gantry tilt.
|
overrideprotectedvirtual |
Does the real work.
Reimplemented from itk::ProcessObject.
|
overridevirtual |
Prepare the allocation of the output image during the first back propagation of the pipeline.
Reimplemented from itk::ProcessObject.
|
inlinenodiscard |
Set/Get the vector of strings that contains the file names. Files are processed in sequential order.
Definition at line 95 of file itkImageSeriesReader.h.
References m_FileNames.
|
virtual |
Do we want to force orthogonal direction cosines? On by default. Turning it off enables proper reading of DICOM series with gantry tilt.
|
virtual |
Set/Get the ImageIO helper class. By default, the ImageSeriesReader uses the factory mechanism of the ImageFileReader to determine the file type. This method can be used to specify which IO to use.
|
nodiscard |
Get access to the Array of MetaDataDictionaries which are updated in the GenerateData methods
|
virtual |
|
virtual |
Set/Get the ImageIO helper class. By default, the ImageSeriesReader uses the factory mechanism of the ImageFileReader to determine the file type. This method can be used to specify which IO to use.
|
virtual |
Reimplemented from itk::ImageSource< TOutputImage >.
References ImageSeriesReader().
|
virtual |
ReverseOrderOn changes the order of traversal of the file names from last to first
|
virtual |
Set the relative threshold for issuing warnings about non-uniform sampling
|
virtual |
Set the stream On or Off
|
virtual |
|
virtual |
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::LightObject.
|
virtual |
ReverseOrderOn changes the order of traversal of the file names from last to first
|
virtual |
ReverseOrderOn changes the order of traversal of the file names from last to first
|
inline |
Set the first file name to be processed. This deletes previous filenames.
Definition at line 104 of file itkImageSeriesReader.h.
References m_FileNames, and itk::Object::Modified().
|
inline |
Set/Get the vector of strings that contains the file names. Files are processed in sequential order.
Definition at line 85 of file itkImageSeriesReader.h.
References m_FileNames, and itk::Object::Modified().
|
virtual |
Do we want to force orthogonal direction cosines? On by default. Turning it off enables proper reading of DICOM series with gantry tilt.
|
virtual |
Set/Get the ImageIO helper class. By default, the ImageSeriesReader uses the factory mechanism of the ImageFileReader to determine the file type. This method can be used to specify which IO to use.
|
virtual |
Set/Get MetaDataDictionaryArrayUpdate enables the updating of the MetaDataDictionaryArray.
By default this is enabled. It may be advantageous to disable this feature when streaming, if this array is not need, as it may reduce the number of times each file is read.
|
virtual |
ReverseOrderOn changes the order of traversal of the file names from last to first
|
virtual |
Set the relative threshold for issuing warnings about non-uniform sampling
|
virtual |
Set the stream On or Off
|
virtual |
Set the stream On or Off
|
virtual |
Set the stream On or Off
|
protected |
A list of filenames to be processed.
Definition at line 210 of file itkImageSeriesReader.h.
Referenced by AddFileName(), GetFileNames(), SetFileName(), and SetFileNames().
|
protected |
Do we want to force orthogonal direction cosines?
Definition at line 207 of file itkImageSeriesReader.h.
|
protected |
The image format, 0 will use the factory mechanism.
Definition at line 201 of file itkImageSeriesReader.h.
Referenced by ImageSeriesReader().
|
private |
The internal storage of MetaDataDictionaries.
Definition at line 236 of file itkImageSeriesReader.h.
|
private |
Array of MetaDataDictionaries. This allows to hold information from the ImageIO objects after reading every sub image in the series
Definition at line 233 of file itkImageSeriesReader.h.
|
private |
Modified time of the MetaDataDictionaryArray
Definition at line 239 of file itkImageSeriesReader.h.
|
private |
Indicated if the MMDA should be updated
Definition at line 242 of file itkImageSeriesReader.h.
|
protected |
The number of independent variables in the images that comprise the series. This is also used as the slice moving dimension index for the output image. That is for reading a series of 2D images into a 3D image, the moving dimension index is 2.
Definition at line 217 of file itkImageSeriesReader.h.
|
protected |
Select the traversal order.
Definition at line 204 of file itkImageSeriesReader.h.
|
protected |
Definition at line 221 of file itkImageSeriesReader.h.
|
protected |
Definition at line 223 of file itkImageSeriesReader.h.
|
protected |
Definition at line 219 of file itkImageSeriesReader.h.