Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkExtractSliceFilter2.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 mitkExtractSliceFilter2_h
14 #define mitkExtractSliceFilter2_h
15 
16 #include <mitkImageToImageFilter.h>
17 #include <mitkPlaneGeometry.h>
18 #include <MitkCoreExports.h>
19 
20 namespace mitk
21 {
47  {
48  public:
57  {
60  Cubic
61  };
62 
64 
65  itkFactorylessNewMacro(Self);
66 
74  void SetInput(const InputImageType* image) override;
75 
85  void SetInput(unsigned int index, const InputImageType* image) override;
86 
93 
99  void SetOutputGeometry(PlaneGeometry::Pointer outputGeometry);
100 
107 
115  void SetInterpolator(Interpolator interpolator);
116 
117  private:
118  using Superclass::SetInput;
119 
122 
124  ~ExtractSliceFilter2() override;
125 
127  void AllocateOutputs() override;
128 
130  void GenerateData() override;
131 
137  void VerifyInputInformation() const override;
138 
139  struct Impl;
140  Impl* m_Impl;
141  };
142 }
143 
144 #endif
#define MITKCORE_EXPORT
Extract an arbitrarily oriented 2D image from a 3D image.
const PlaneGeometry * GetOutputGeometry() const
Get the output geometry defining the orientation of the extracted 2D slice.
Interpolator
Interpolation methods for slice extraction.
void SetOutputGeometry(PlaneGeometry::Pointer outputGeometry)
Set the output geometry defining the orientation of the extracted 2D slice.
void SetInput(const InputImageType *image) override
Set the input image.
void SetInput(unsigned int index, const InputImageType *image) override
Set the input image at a given index.
void SetInterpolator(Interpolator interpolator)
Set the interpolation method.
Interpolator GetInterpolator() const
Get the current interpolation method.
mitkClassMacro(ExtractSliceFilter2, ImageToImageFilter)
Superclass of all classes having one or more Images as input and generating Images as output.
Image class for storing multi-dimensional medical image data.
Definition: mitkImage.h:76
Describes the geometry of a plane object.
Find image slices visible on a given plane.