Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 /*===================================================================
18 
19 This file is based heavily on a corresponding ITK filter.
20 
21 ===================================================================*/
22 #ifndef __itkImageToPathFilter_h
23 #define __itkImageToPathFilter_h
24 
25 #include "itkImage.h"
26 #include "itkPathSource.h"
27 
28 namespace itk
29 {
39  template <class TInputImage, class TOutputPath>
40  class ITK_EXPORT ImageToPathFilter : public PathSource<TOutputPath>
41  {
42  public:
45  typedef PathSource<TOutputPath> Superclass;
48 
50  itkTypeMacro(ImageToPathFilter, PathSource);
51 
53  typedef TInputImage InputImageType;
56  typedef typename InputImageType::RegionType InputImageRegionType;
58 
60  itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
61 
63  using Superclass::SetInput;
64  virtual void SetInput(const InputImageType *image);
65  virtual void SetInput(unsigned int, const TInputImage *image);
66  const InputImageType *GetInput(void);
67  const InputImageType *GetInput(unsigned int idx);
68 
69  protected:
72 
73  virtual void PrintSelf(std::ostream &os, Indent indent) const;
74 
75  private:
76  ImageToPathFilter(const Self &); // purposely not implemented
77  void operator=(const Self &); // purposely not implemented
78  };
79 
80 } // end namespace itk
81 
82 #ifndef ITK_MANUAL_INSTANTIATION
83 #include "itkImageToPathFilter.txx"
84 #endif
85 
86 #endif
itk::SmartPointer< Self > Pointer
Base class for filters that take an image as input and produce an path as output. ...
InputImageType::Pointer InputImagePointer
itk::SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
PathSource< TOutputPath > Superclass
InputImageType::RegionType InputImageRegionType
unsigned short PixelType
InputImageType::ConstPointer InputImageConstPointer
InputImageType::PixelType InputImagePixelType
SmartPointer< const Self > ConstPointer