ITK  5.0.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:
46  ITK_DISALLOW_COPY_AND_ASSIGN(ImageToPathFilter);
47 
53 
55  itkTypeMacro(ImageToPathFilter, PathSource);
56 
58  using InputImageType = TInputImage;
59  using InputImagePointer = typename InputImageType::Pointer;
60  using InputImageConstPointer = typename InputImageType::ConstPointer;
62  using InputImagePixelType = typename InputImageType::PixelType;
63 
65  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
66 
68  using Superclass::SetInput;
69  virtual void SetInput(const InputImageType *image);
70 
71  virtual void SetInput(unsigned int, const TInputImage *image);
72 
73  const InputImageType * GetInput();
74 
75  const InputImageType * GetInput(unsigned int idx);
76 
77 protected:
79  ~ImageToPathFilter() override = default;
80 
81  void PrintSelf(std::ostream & os, Indent indent) const override;
82 };
83 } // end namespace itk
84 
85 #ifndef ITK_MANUAL_INSTANTIATION
86 #include "itkImageToPathFilter.hxx"
87 #endif
88 
89 #endif
Light weight base class for most itk classes.
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. ...
Control indentation during Print() invocation.
Definition: itkIndent.h:49