Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkImageToImageFilter.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 mitkImageToImageFilter_h
14 #define mitkImageToImageFilter_h
15 
16 #include <mitkImageSource.h>
17 #include <MitkCoreExports.h>
18 
19 namespace mitk
20 {
29  {
30  public:
32 
34  itkFactorylessNewMacro(Self);
35  itkCloneMacro(Self);
36 
38  typedef Superclass::OutputImageRegionType OutputImageRegionType;
39 
42  typedef InputImageType::Pointer InputImagePointer;
43  typedef InputImageType::ConstPointer InputImageConstPointer;
45 
46  using itk::ProcessObject::SetInput;
47 
53  virtual void SetInput(const InputImageType *image);
54 
61  virtual void SetInput(unsigned int idx, const InputImageType *image);
62 
65 
72  InputImageType *GetInput(unsigned int idx);
73 
75  const InputImageType *GetInput(void) const;
76 
83  const InputImageType *GetInput(unsigned int idx) const;
84 
85  protected:
87  ~ImageToImageFilter() override;
88 
90  void PrintSelf(std::ostream &os, itk::Indent indent) const override;
91 
105 
106  private:
107  void operator=(const Self &); // purposely not implemented
108  };
109 
110 } // namespace mitk
111 
112 #endif
#define MITKCORE_EXPORT
Superclass of all classes generating Images (instances of class Image) as output.
Superclass of all classes having one or more Images as input and generating Images as output.
InputImageType::Pointer InputImagePointer
InputImageType::ConstPointer InputImageConstPointer
void GenerateInputRequestedRegion() override
Determine the input requested region to produce the output requested region.
InputImageType * GetInput(unsigned int idx)
Get the input image at the specified index (non-const).
InputImageType * GetInput(void)
Get the input image (non-const).
~ImageToImageFilter() override
mitkClassMacro(ImageToImageFilter, ImageSource)
SlicedData::RegionType InputImageRegionType
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Print self information to the given stream.
Superclass::OutputImageRegionType OutputImageRegionType
Superclass typedefs.
virtual void SetInput(unsigned int idx, const InputImageType *image)
Set the image input at the specified index.
const InputImageType * GetInput(void) const
Get the input image (const).
virtual void SetInput(const InputImageType *image)
Set the image input of this process object.
const InputImageType * GetInput(unsigned int idx) const
Get the input image at the specified index (const).
mitk::Image InputImageType
Some convenient typedefs.
Image class for storing multi-dimensional medical image data.
Definition: mitkImage.h:76
itk::ImageRegion< RegionDimension > RegionType
Find image slices visible on a given plane.