Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkConvert2Dto3DImageFilter.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 #ifndef mitkConvert2Dto3DImageFilter_h
13 #define mitkConvert2Dto3DImageFilter_h
14 
15 // MITK
16 #include <mitkImageToImageFilter.h>
17 #include <itkImage.h>
18 #include <mitkImage.h>
19 
20 namespace mitk
21 {
36  {
37  public:
39  itkFactorylessNewMacro(Self);
40  itkCloneMacro(Self);
41 
42  protected:
47 
54  void GenerateData() override;
55 
61  template <typename TPixel, unsigned int VImageDimension>
62  void ItkConvert2DTo3D(const itk::Image<TPixel, VImageDimension> *itkImage, mitk::Image::Pointer &mitkImage);
63  };
64 } // END mitk namespace
65 #endif
#define MITKCORE_EXPORT
Converts a 2D MITK image to a 3D MITK image with a single slice.
mitkClassMacro(Convert2Dto3DImageFilter, ImageToImageFilter)
void ItkConvert2DTo3D(const itk::Image< TPixel, VImageDimension > *itkImage, mitk::Image::Pointer &mitkImage)
ITK-level conversion from a 2D ITK image to a 3D MITK image.
~Convert2Dto3DImageFilter() override
Destructor.
Convert2Dto3DImageFilter()
Default constructor.
void GenerateData() override
Generate the 3D output image from the 2D input.
Superclass of all classes having one or more Images as input and generating Images as output.
Find image slices visible on a given plane.