Medical Imaging Interaction Toolkit  2021.10.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
Base class for filters that take an image as input and produce an path as output. ...
InputImageType::Pointer InputImagePointer
SmartPointer< Self > Pointer
PathSource< TOutputPath > Superclass
InputImageType::RegionType InputImageRegionType
InputImageType::ConstPointer InputImageConstPointer
InputImageType::PixelType InputImagePixelType
SmartPointer< const Self > ConstPointer