Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
14 #define mitkExtractImageFilter_h
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
82  } DIRECTIONCOLLAPSESTRATEGY;
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
mitk::ExtractImageFilter::m_SliceDimension
unsigned int m_SliceDimension
Definition: mitkExtractImageFilter.h:103
mitk::ExtractImageFilter
Extracts a 2D slice from a 3D image.
Definition: mitkExtractImageFilter.h:49
mitkImageToImageFilter.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ExtractImageFilter::m_SliceIndex
unsigned int m_SliceIndex
Definition: mitkExtractImageFilter.h:102
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitk::ExtractImageFilter::m_DirectionCollapseToStrategy
DIRECTIONCOLLAPSESTRATEGY m_DirectionCollapseToStrategy
Definition: mitkExtractImageFilter.h:105
mitkCommon.h
MITKIMAGEEXTRACTION_EXPORT
#define MITKIMAGEEXTRACTION_EXPORT
Definition: MitkImageExtractionExports.h:15
mitk::ExtractImageFilter::DirectionCollapseStrategyEnum
DirectionCollapseStrategyEnum
Definition: mitkExtractImageFilter.h:77
mitk::ExtractImageFilter::DIRECTIONCOLLAPSESTRATEGY
enum mitk::ExtractImageFilter::DirectionCollapseStrategyEnum DIRECTIONCOLLAPSESTRATEGY
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::ExtractImageFilter::m_TimeStep
unsigned int m_TimeStep
Definition: mitkExtractImageFilter.h:104
MitkImageExtractionExports.h
mitk::ImageToImageFilter
Superclass of all classes having one or more Images as input and generating Images as output.
Definition: mitkImageToImageFilter.h:25