Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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
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:50
DEPRECATED
#define DEPRECATED(func)
Definition: mitkCommon.h:175
mitk::ExtractDirectedPlaneImageFilterNew::SetCurrentWorldGeometry2D
void SetCurrentWorldGeometry2D(BaseGeometry *geo)
Definition: mitkExtractDirectedPlaneImageFilterNew.h:68
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