Medical Imaging Interaction Toolkit  2021.02.99-b9f34b51
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 {
41  {
42  public:
44  {
47  Cubic
48  };
49 
51 
52  itkFactorylessNewMacro(Self);
53 
54  void SetInput(const InputImageType* image) override;
55  void SetInput(unsigned int index, const InputImageType* image) override;
56 
57  const PlaneGeometry* GetOutputGeometry() const;
58  void SetOutputGeometry(PlaneGeometry::Pointer outputGeometry);
59 
60  Interpolator GetInterpolator() const;
61  void SetInterpolator(Interpolator interpolator);
62 
63  private:
64  using Superclass::SetInput;
65 
67  ~ExtractSliceFilter2() override;
68 
69  void AllocateOutputs() override;
70  // void BeforeThreadedGenerateData() override;
71  // void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId) override;
72  void GenerateData() override;
73  void VerifyInputInformation() override;
74 
75  struct Impl;
76  Impl* m_Impl;
77  };
78 }
79 
80 #endif
#define MITKCORE_EXPORT
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Image class for storing images.
Definition: mitkImage.h:73
Superclass of all classes having one or more Images as input and generating Images as output...
Describes a two-dimensional, rectangular plane.
Extract an arbitrarily oriented 2-d image from a 3-d image.