ITK  5.4.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 * https://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
24namespace itk
25{
42template <typename TInputImage, typename TOutputPath>
43class ITK_TEMPLATE_EXPORT ImageToPathFilter : public PathSource<TOutputPath>
44{
45public:
46 ITK_DISALLOW_COPY_AND_MOVE(ImageToPathFilter);
47
53
55 itkOverrideGetNameOfClassMacro(ImageToPathFilter);
56
58 using InputImageType = TInputImage;
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 *
77
78 const InputImageType *
79 GetInput(unsigned int idx);
80
81protected:
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
Base class for filters that take an image as input and produce an path as output.
~ImageToPathFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputImageType::PixelType InputImagePixelType
virtual void SetInput(unsigned int, const TInputImage *image)
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::Pointer InputImagePointer
const InputImageType * GetInput(unsigned int idx)
typename InputImageType::RegionType InputImageRegionType
virtual void SetInput(const InputImageType *input)
const InputImageType * GetInput()
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
Base class for all process objects that output path data.
Definition: itkPathSource.h:43
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....