13 #ifndef mitkITKDICOMSeriesReaderHelper_h
14 #define mitkITKDICOMSeriesReaderHelper_h
20 #include <itkGDCMImageIO.h>
78 typedef std::vector<TimeBounds> TimeBoundsList;
79 typedef itk::FixedArray<OFDateTime,2> DateTimeBounds;
91 static bool ExtractDateTimeBoundsAndTriggerOfTimeStep(
const StringContainer& filenamesOfTimeStep,
92 DateTimeBounds& bounds,
TimeBounds& triggerBounds);
104 static bool ExtractTimeBoundsOfTimeStep(
const StringContainer& filenamesOfTimeStep,
106 const OFDateTime& baselineDateTime,
107 bool& usedTriggerBounds);
115 static TimeBoundsList ExtractTimeBoundsOfTimeSteps (
const StringContainerList& filenamesOfTimeSteps);
120 static TimeGeometry::Pointer GenerateTimeGeometry(
const BaseGeometry* templateGeometry,
const TimeBoundsList& boundsList);
122 template <
typename ImageType>
123 typename ImageType::Pointer
126 template <
typename PixelType,
unsigned int TDim>
131 itk::GDCMImageIO::Pointer& io);
133 template<
unsigned int TDim>
138 itk::GDCMImageIO::Pointer& io);
141 template <
typename PixelType>
146 itk::GDCMImageIO::Pointer& io);
Abstract base class describing the geometry of a data object.
Representation of a DICOM tag.
Helper class that uses ITK's ImageSeriesReader to load DICOM images.
std::vector< std::string > StringContainer
A list of file path strings for a single 3D volume.
static const DICOMTag AcquisitionTimeTag
DICOM tag (0008,0032) Acquisition Time.
Image::Pointer Load(const StringContainer &filenames, bool correctTilt, const GantryTiltInformation &tiltInfo)
Load a single 3D DICOM image from the given files.
static bool CanHandleFile(const std::string &filename)
Check if the given file can be handled by this reader (i.e. is readable by GDCM).
std::list< StringContainer > StringContainerList
A list of StringContainer instances, one per time step (for 3D+t loading).
static const DICOMTag TriggerTimeTag
DICOM tag (0018,1060) Trigger Time.
static const DICOMTag AcquisitionDateTag
DICOM tag (0008,0022) Acquisition Date.
Image::Pointer Load3DnT(const StringContainerList &filenamesLists, bool correctTilt, const GantryTiltInformation &tiltInfo)
Load a 3D+t DICOM image from multiple time step file lists.
Find image slices visible on a given plane.
itk::FixedArray< ScalarType, 2 > TimeBounds
Fixed-size array holding a pair of time bound values [min, max] in milliseconds.