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 {
42 template <typename TInputImage, typename TOutputPath>
43 class ITK_TEMPLATE_EXPORT ImageToPathFilter : public PathSource<TOutputPath>
44 {
45 public:
46  ITK_DISALLOW_COPY_AND_MOVE(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
70  SetInput(const InputImageType * input);
71 
72  virtual void
73  SetInput(unsigned int, const TInputImage * image);
74 
75  const InputImageType *
76  GetInput();
77 
78  const InputImageType *
79  GetInput(unsigned int idx);
80 
81 protected:
83  ~ImageToPathFilter() override = default;
84 
85  void
86  PrintSelf(std::ostream & os, Indent indent) const override;
87 };
88 } // end namespace itk
89 
90 #ifndef ITK_MANUAL_INSTANTIATION
91 # include "itkImageToPathFilter.hxx"
92 #endif
93 
94 #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:60
itk::ImageToPathFilter< TInputImage, PolyLineParametricPath< 2 > >::InputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Definition: itkImageToPathFilter.h:62
itk::ImageToPathFilter< TInputImage, PolyLineParametricPath< 2 > >::InputImageType
TInputImage InputImageType
Definition: itkImageToPathFilter.h:58
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:61
itk::ImageToPathFilter
Base class for filters that take an image as input and produce an path as output.
Definition: itkImageToPathFilter.h:43
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:59
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24