Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkThreeDnTDICOMSeriesReader.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkThreeDnTDICOMSeriesReader_h
14 #define mitkThreeDnTDICOMSeriesReader_h
15 
17 
18 #include "MitkDICOMExports.h"
19 
20 namespace mitk
21 {
22 
42 {
43  public:
44 
47  itkNewMacro( ThreeDnTDICOMSeriesReader );
49 
51  void SetGroup3DandT(bool on);
52  bool GetGroup3DandT() const;
53 
54  itkBooleanMacro(OnlyCondenseSameSeries);
55  itkSetMacro(OnlyCondenseSameSeries, bool);
56  itkGetConstMacro(OnlyCondenseSameSeries, bool);
57 
58  // void AllocateOutputImages();
60  bool LoadImages() override;
61 
62  bool operator==(const DICOMFileReader& other) const override;
63 
64  static bool GetDefaultGroup3DandT()
65  {
66  return m_DefaultGroup3DandT;
67  }
69  {
70  return m_DefaultOnlyCondenseSameSeries;
71  }
72 
73  protected:
74 
75  ThreeDnTDICOMSeriesReader(unsigned int decimalPlacesForOrientation = Superclass::m_DefaultDecimalPlacesForOrientation);
77 
80 
87 
89 
92 
93  const static bool m_DefaultGroup3DandT = true;
94  const static bool m_DefaultOnlyCondenseSameSeries = true;
95 };
96 
97 }
98 
99 #endif
#define MITKDICOM_EXPORT
Interface for DICOM readers that produce mitk::Images.
Flexible reader based on itk::ImageSeriesReader and GDCM, for single-slice modalities like CT,...
std::vector< SortingBlockListItemType > SortingBlockList
Output descriptor for DICOMFileReader.
Extends DICOMITKSeriesGDCMReader by sorting/grouping into 3D+t image blocks.
bool LoadMitkImageForImageBlockDescriptor(DICOMImageBlockDescriptor &block) const override
SortingBlockList Condense3DBlocks(SortingBlockList &) override
Analyze the groups produced by DICOMITKSeriesGDCMReader for 3D+t properties. This method tests whethe...
bool operator==(const DICOMFileReader &other) const override
ThreeDnTDICOMSeriesReader & operator=(const ThreeDnTDICOMSeriesReader &other)
void SetGroup3DandT(bool on)
Control whether 3D+t grouping shall actually be attempted.
mitkCloneMacro(ThreeDnTDICOMSeriesReader)
mitkClassMacro(ThreeDnTDICOMSeriesReader, DICOMITKSeriesGDCMReader)
mitkNewMacro1Param(ThreeDnTDICOMSeriesReader, unsigned int)
bool LoadImages() override
Load via multiple calls to itk::ImageSeriesReader.
ThreeDnTDICOMSeriesReader(const ThreeDnTDICOMSeriesReader &other)
ThreeDnTDICOMSeriesReader(unsigned int decimalPlacesForOrientation=Superclass::m_DefaultDecimalPlacesForOrientation)
Find image slices visible on a given plane.