Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkExtractImageFilter_h_Included
18 #define mitkExtractImageFilter_h_Included
19 
20 #include "mitkCommon.h"
21 #include "mitkImageToImageFilter.h"
23 
24 #include "itkImage.h"
25 
26 namespace mitk
27 {
55  {
56  public:
58  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
59 
60 
63  itkSetMacro(SliceIndex, unsigned int);
64  itkGetConstMacro(SliceIndex, unsigned int);
65 
72  itkSetMacro(SliceDimension, unsigned int);
73  itkGetConstMacro(SliceDimension, unsigned int);
74 
78  itkSetMacro(TimeStep, unsigned int);
79  itkGetConstMacro(TimeStep, unsigned int);
80 
82  DIRECTIONCOLLAPSETOUNKOWN = 0,
83  DIRECTIONCOLLAPSETOIDENTITY = 1,
84  DIRECTIONCOLLAPSETOSUBMATRIX = 2,
85  DIRECTIONCOLLAPSETOGUESS = 3
86  } DIRECTIONCOLLAPSESTRATEGY;
87 
91  itkSetMacro(DirectionCollapseToStrategy, DIRECTIONCOLLAPSESTRATEGY);
92  itkGetConstMacro(DirectionCollapseToStrategy, DIRECTIONCOLLAPSESTRATEGY);
93 
94  protected:
95  ExtractImageFilter(); // purposely hidden
96  virtual ~ExtractImageFilter();
97 
98  virtual void GenerateOutputInformation() override;
99  virtual void GenerateInputRequestedRegion() override;
100 
101  virtual void GenerateData() override;
102 
103  template <typename TPixel, unsigned int VImageDimension>
104  void ItkImageProcessing(const itk::Image<TPixel, VImageDimension> *image);
105 
106  unsigned int m_SliceIndex;
107  unsigned int m_SliceDimension;
108  unsigned int m_TimeStep;
110  };
111 
112 } // namespace
113 
114 #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:44
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.