Medical Imaging Interaction Toolkit  2022.04.99-194dd5d8
Medical Imaging Interaction Toolkit
mitkExtractImageFilter.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 mitkExtractImageFilter_h_Included
14 #define mitkExtractImageFilter_h_Included
15 
16 #include "mitkCommon.h"
17 #include "mitkImageToImageFilter.h"
19 
20 #include "itkImage.h"
21 
22 namespace mitk
23 {
50  {
51  public:
53  itkFactorylessNewMacro(Self);
54  itkCloneMacro(Self);
55 
59  itkSetMacro(SliceIndex, unsigned int);
60  itkGetConstMacro(SliceIndex, unsigned int);
61 
68  itkSetMacro(SliceDimension, unsigned int);
69  itkGetConstMacro(SliceDimension, unsigned int);
70 
74  itkSetMacro(TimeStep, unsigned int);
75  itkGetConstMacro(TimeStep, unsigned int);
76 
78  DIRECTIONCOLLAPSETOUNKOWN = 0,
79  DIRECTIONCOLLAPSETOIDENTITY = 1,
80  DIRECTIONCOLLAPSETOSUBMATRIX = 2,
81  DIRECTIONCOLLAPSETOGUESS = 3
83 
87  itkSetMacro(DirectionCollapseToStrategy, DIRECTIONCOLLAPSESTRATEGY);
88  itkGetConstMacro(DirectionCollapseToStrategy, DIRECTIONCOLLAPSESTRATEGY);
89 
90  protected:
91  ExtractImageFilter(); // purposely hidden
92  ~ExtractImageFilter() override;
93 
94  void GenerateOutputInformation() override;
95  void GenerateInputRequestedRegion() override;
96 
97  void GenerateData() override;
98 
99  template <typename TPixel, unsigned int VImageDimension>
100  void ItkImageProcessing(const itk::Image<TPixel, VImageDimension> *image);
101 
102  unsigned int m_SliceIndex;
103  unsigned int m_SliceDimension;
104  unsigned int m_TimeStep;
106  };
107 
108 } // namespace
109 
110 #endif
DIRECTIONCOLLAPSESTRATEGY m_DirectionCollapseToStrategy
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKIMAGEEXTRACTION_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
enum mitk::ExtractImageFilter::DirectionCollapseStrategyEnum DIRECTIONCOLLAPSESTRATEGY
Superclass of all classes having one or more Images as input and generating Images as output...
Extracts a 2D slice from a 3D image.