ITK  5.2.0
Insight Toolkit
itkImageToPathFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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 {
43 template <typename TInputImage, typename TOutputPath>
44 class ITK_TEMPLATE_EXPORT ImageToPathFilter : public PathSource<TOutputPath>
45 {
46 public:
47  ITK_DISALLOW_COPY_AND_MOVE(ImageToPathFilter);
48 
54 
56  itkTypeMacro(ImageToPathFilter, PathSource);
57 
59  using InputImageType = TInputImage;
60  using InputImagePointer = typename InputImageType::Pointer;
61  using InputImageConstPointer = typename InputImageType::ConstPointer;
63  using InputImagePixelType = typename InputImageType::PixelType;
64 
66  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
67 
69  using Superclass::SetInput;
70  virtual void
71  SetInput(const InputImageType * image);
72 
73  virtual void
74  SetInput(unsigned int, const TInputImage * image);
75 
76  const InputImageType *
77  GetInput();
78 
79  const InputImageType *
80  GetInput(unsigned int idx);
81 
82 protected:
84  ~ImageToPathFilter() override = default;
85 
86  void
87  PrintSelf(std::ostream & os, Indent indent) const override;
88 };
89 } // end namespace itk
90 
91 #ifndef ITK_MANUAL_INSTANTIATION
92 # include "itkImageToPathFilter.hxx"
93 #endif
94 
95 #endif
itkPathSource.h
itk::PathSource
Base class for all process objects that output path data.
Definition: itkPathSource.h:42
itk::ImageToPathFilter< TInputImage, PolyLineParametricPath< 2 > >::InputImageConstPointer
typename InputImageType::ConstPointer InputImageConstPointer
Definition: itkImageToPathFilter.h:61
itk::ImageToPathFilter< TInputImage, PolyLineParametricPath< 2 > >::InputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Definition: itkImageToPathFilter.h:63
itk::ImageToPathFilter< TInputImage, PolyLineParametricPath< 2 > >::InputImageType
TInputImage InputImageType
Definition: itkImageToPathFilter.h:59
itkImage.h
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ImageToPathFilter< TInputImage, PolyLineParametricPath< 2 > >::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition: itkImageToPathFilter.h:62
itk::ImageToPathFilter
Base class for filters that take an image as input and produce an path as output.
Definition: itkImageToPathFilter.h:44
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::ImageToPathFilter< TInputImage, PolyLineParametricPath< 2 > >::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition: itkImageToPathFilter.h:60
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24