Medical Imaging Interaction Toolkit  2022.04.99-b878213f
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 (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 mitkExtractDirectedPlaneImageFilterNew_h_Included
14 #define mitkExtractDirectedPlaneImageFilterNew_h_Included
15 
16 #include "itkImage.h"
17 #include "mitkITKImageImport.h"
18 #include "mitkImageToImageFilter.h"
20 
21 namespace mitk
22 {
54  {
55  public:
57  itkFactorylessNewMacro(Self);
58  itkCloneMacro(Self);
59 
66  itkSetMacro(CurrentWorldPlaneGeometry, BaseGeometry *);
67 
71  DEPRECATED(void SetCurrentWorldGeometry2D(BaseGeometry *geo)) { SetCurrentWorldPlaneGeometry(geo); };
72  itkSetMacro(ImageGeometry, BaseGeometry *);
73 
79  itkSetMacro(ActualInputTimestep, int);
80 
81  protected:
84  void GenerateData() override;
85  void GenerateOutputInformation() override;
86 
87  private:
88  const BaseGeometry *m_CurrentWorldPlaneGeometry;
89  const BaseGeometry *m_ImageGeometry;
90  int m_ActualInputTimestep;
91 
92  template <typename TPixel, unsigned int VImageDimension>
93  void ItkSliceExtraction(const itk::Image<TPixel, VImageDimension> *inputImage);
94  };
95 
96 } // namespace
97 
98 #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:175
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
Superclass of all classes having one or more Images as input and generating Images as output...
BaseGeometry Describes the geometry of a data object.