Medical Imaging Interaction Toolkit  2023.12.99-5f0d6a86
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 {
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
mitkImageToImageFilter.h
mitk::ExtractDirectedPlaneImageFilterNew
A filter that can extract a 2D slice from a 3D or 4D image especially if the image`s axes are rotated...
Definition: mitkExtractDirectedPlaneImageFilterNew.h:53
DEPRECATED
#define DEPRECATED(func)
Definition: mitkCommon.h:175
mitk::ExtractDirectedPlaneImageFilterNew::SetCurrentWorldGeometry2D
void SetCurrentWorldGeometry2D(BaseGeometry *geo)
Definition: mitkExtractDirectedPlaneImageFilterNew.h:71
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition: mitkBaseDataSource.h:71
mitk::BaseGeometry
BaseGeometry Describes the geometry of a data object.
Definition: mitkBaseGeometry.h:94
mitkITKImageImport.h
MITKIMAGEEXTRACTION_EXPORT
#define MITKIMAGEEXTRACTION_EXPORT
Definition: MitkImageExtractionExports.h:15
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MitkImageExtractionExports.h
mitk::ImageToImageFilter
Superclass of all classes having one or more Images as input and generating Images as output.
Definition: mitkImageToImageFilter.h:25