ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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;
59 using InputImagePointer = typename InputImageType::Pointer;
60 using InputImageConstPointer = typename InputImageType::ConstPointer;
61 using InputImageRegionType = typename InputImageType::RegionType;
62 using InputImagePixelType = typename InputImageType::PixelType;
63
65 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
66
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
~ImageToPathFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetInput(unsigned int, const TInputImage *image)
typename InputImageType::ConstPointer InputImageConstPointer
const InputImageType * GetInput(unsigned int idx)
virtual void SetInput(const InputImageType *input)
const InputImageType * GetInput()
Control indentation during Print() invocation.
Definition itkIndent.h:50
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....