Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkExtractDirectedPlaneImageFilterNew.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 mitkExtractDirectedPlaneImageFilterNew_h_Included
18 #define mitkExtractDirectedPlaneImageFilterNew_h_Included
19 
20 #include "itkImage.h"
21 #include "mitkITKImageImport.h"
22 #include "mitkImageToImageFilter.h"
24 
25 namespace mitk
26 {
59  {
60  public:
62  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
63 
64 
70  itkSetMacro(CurrentWorldPlaneGeometry, BaseGeometry *);
71 
75  DEPRECATED(void SetCurrentWorldGeometry2D(BaseGeometry *geo)) { SetCurrentWorldPlaneGeometry(geo); };
76  itkSetMacro(ImageGeometry, BaseGeometry *);
77 
83  itkSetMacro(ActualInputTimestep, int);
84 
85  protected:
88  virtual void GenerateData() override;
89  virtual void GenerateOutputInformation() override;
90 
91  private:
92  const BaseGeometry *m_CurrentWorldPlaneGeometry;
93  const BaseGeometry *m_ImageGeometry;
94  int m_ActualInputTimestep;
95 
96  template <typename TPixel, unsigned int VImageDimension>
97  void ItkSliceExtraction(const itk::Image<TPixel, VImageDimension> *inputImage);
98  };
99 
100 } // namespace
101 
102 #endif
Superclass of all classes generating some kind of mitk::BaseData.
A filter that can extract a 2D slice from a 3D or 4D image especially if the image`s axes are rotated...
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKIMAGEEXTRACTION_EXPORT
#define DEPRECATED(func)
Definition: mitkCommon.h:183
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Superclass of all classes having one or more Images as input and generating Images as output...
BaseGeometry Describes the geometry of a data object.