Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
itkImageToPathFilter.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 /*===================================================================
14 
15 This file is based heavily on a corresponding ITK filter.
16 
17 ===================================================================*/
18 #ifndef __itkImageToPathFilter_h
19 #define __itkImageToPathFilter_h
20 
21 #include "itkImage.h"
22 #include "itkPathSource.h"
23 
24 namespace itk
25 {
35  template <class TInputImage, class TOutputPath>
36  class ITK_EXPORT ImageToPathFilter : public PathSource<TOutputPath>
37  {
38  public:
41  typedef PathSource<TOutputPath> Superclass;
44 
46  itkTypeMacro(ImageToPathFilter, PathSource);
47 
49  typedef TInputImage InputImageType;
50  typedef typename InputImageType::Pointer InputImagePointer;
51  typedef typename InputImageType::ConstPointer InputImageConstPointer;
52  typedef typename InputImageType::RegionType InputImageRegionType;
53  typedef typename InputImageType::PixelType InputImagePixelType;
54 
56  itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
57 
59  using Superclass::SetInput;
60  virtual void SetInput(const InputImageType *image);
61  virtual void SetInput(unsigned int, const TInputImage *image);
62  const InputImageType *GetInput(void);
63  const InputImageType *GetInput(unsigned int idx);
64 
65  protected:
67  ~ImageToPathFilter() override;
68 
69  void PrintSelf(std::ostream &os, Indent indent) const override;
70 
71  private:
72  ImageToPathFilter(const Self &); // purposely not implemented
73  void operator=(const Self &); // purposely not implemented
74  };
75 
76 } // end namespace itk
77 
78 #ifndef ITK_MANUAL_INSTANTIATION
79 #include "itkImageToPathFilter.txx"
80 #endif
81 
82 #endif
itk::ImageToPathFilter::InputImageConstPointer
InputImageType::ConstPointer InputImageConstPointer
Definition: itkImageToPathFilter.h:51
itk::ImageToPathFilter::InputImagePixelType
InputImageType::PixelType InputImagePixelType
Definition: itkImageToPathFilter.h:53
itk::ImageToPathFilter::InputImageRegionType
InputImageType::RegionType InputImageRegionType
Definition: itkImageToPathFilter.h:52
itk::ImageToPathFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToPathFilter.h:46
itk::SmartPointer< Self >
itk::ImageToPathFilter
Base class for filters that take an image as input and produce an path as output.
Definition: itkImageToPathFilter.h:36
itk::ImageToPathFilter::ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkImageToPathFilter.h:43
itk::ImageToPathFilter::InputImagePointer
InputImageType::Pointer InputImagePointer
Definition: itkImageToPathFilter.h:50
itk::ImageToPathFilter::Superclass
PathSource< TOutputPath > Superclass
Definition: itkImageToPathFilter.h:41
itk::ImageToPathFilter::Self
ImageToPathFilter Self
Definition: itkImageToPathFilter.h:40
itk
SET FUNCTIONS.
Definition: itkIntelligentBinaryClosingFilter.h:30
itk::ImageToPathFilter::Pointer
SmartPointer< Self > Pointer
Definition: itkImageToPathFilter.h:42