Medical Imaging Interaction Toolkit  2025.12.02
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
14 #define mitkExtractDirectedPlaneImageFilterNew_h
15 
16 #include "itkImage.h"
17 #include "mitkITKImageImport.h"
18 #include "mitkImageToImageFilter.h"
20 
21 namespace mitk
22 {
51  {
52  public:
54  itkFactorylessNewMacro(Self);
55  itkCloneMacro(Self);
56 
63  itkSetMacro(CurrentWorldPlaneGeometry, BaseGeometry *);
64 
68  DEPRECATED(void SetCurrentWorldGeometry2D(BaseGeometry *geo)) { SetCurrentWorldPlaneGeometry(geo); };
69  itkSetMacro(ImageGeometry, BaseGeometry *);
70 
76  itkSetMacro(ActualInputTimestep, int);
77 
78  protected:
81  void GenerateData() override;
82  void GenerateOutputInformation() override;
83 
84  private:
85  const BaseGeometry *m_CurrentWorldPlaneGeometry;
86  const BaseGeometry *m_ImageGeometry;
87  int m_ActualInputTimestep;
88 
89  template <typename TPixel, unsigned int VImageDimension>
90  void ItkSliceExtraction(const itk::Image<TPixel, VImageDimension> *inputImage);
91  };
92 
93 } // namespace
94 
95 #endif
#define MITKIMAGEEXTRACTION_EXPORT
BaseGeometry Describes the geometry of a data object.
A filter that can extract a 2D slice from a 3D or 4D image especially if the image`s axes are rotated...
mitkClassMacro(ExtractDirectedPlaneImageFilterNew, ImageToImageFilter)
Superclass of all classes generating Images (instances of class Image) as output.
Superclass of all classes having one or more Images as input and generating Images as output.
#define DEPRECATED(func)
Definition: mitkCommon.h:175
Find image slices visible on a given plane.