ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkImageToPathFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkImageToPathFilter_h
19 #define itkImageToPathFilter_h
20 
21 #include "itkImage.h"
22 #include "itkPathSource.h"
23 
24 namespace itk
25 {
42 template< typename TInputImage, typename TOutputPath >
43 class ITK_TEMPLATE_EXPORT ImageToPathFilter:public PathSource< TOutputPath >
44 {
45 public:
51 
53  itkTypeMacro(ImageToPathFilter, PathSource);
54 
56  typedef TInputImage InputImageType;
57  typedef typename InputImageType::Pointer InputImagePointer;
58  typedef typename InputImageType::ConstPointer InputImageConstPointer;
59  typedef typename InputImageType::RegionType InputImageRegionType;
60  typedef typename InputImageType::PixelType InputImagePixelType;
61 
63  itkStaticConstMacro(InputImageDimension, unsigned int,
64  TInputImage::ImageDimension);
65 
67  using Superclass::SetInput;
68  virtual void SetInput(const InputImageType *image);
69 
70  virtual void SetInput(unsigned int, const TInputImage *image);
71 
72  const InputImageType * GetInput();
73 
74  const InputImageType * GetInput(unsigned int idx);
75 
76 protected:
78  virtual ~ImageToPathFilter();
79 
80  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
81 
82 private:
83  ITK_DISALLOW_COPY_AND_ASSIGN(ImageToPathFilter);
84 };
85 } // end namespace itk
86 
87 #ifndef ITK_MANUAL_INSTANTIATION
88 #include "itkImageToPathFilter.hxx"
89 #endif
90 
91 #endif
Base class for all process objects that output path data.
Definition: itkPathSource.h:41
Base class for filters that take an image as input and produce an path as output. ...
InputImageType::Pointer InputImagePointer
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
PathSource< TOutputPath > Superclass
Control indentation during Print() invocation.
Definition: itkIndent.h:49
InputImageType::RegionType InputImageRegionType
InputImageType::ConstPointer InputImageConstPointer
InputImageType::PixelType InputImagePixelType