ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkPathAndImageToPathFilter.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 itkPathAndImageToPathFilter_h
19#define itkPathAndImageToPathFilter_h
20
21#include "itkPathToPathFilter.h"
22
23namespace itk
24{
37template <typename TInputPath, typename TInputImage, typename TOutputPath>
38class ITK_TEMPLATE_EXPORT PathAndImageToPathFilter : public PathToPathFilter<TInputPath, TOutputPath>
39{
40public:
41 ITK_DISALLOW_COPY_AND_MOVE(PathAndImageToPathFilter);
42
48
50 itkNewMacro(Self);
51
53 itkOverrideGetNameOfClassMacro(PathAndImageToPathFilter);
54
56 using InputPathType = TInputPath;
57 using InputPathPointer = typename InputPathType::Pointer;
58 using InputPathConstPointer = typename InputPathType::ConstPointer;
59 using InputPathInputType = typename InputPathType::InputType;
60 using InputPathOutputType = typename InputPathType::OutputType;
61 using InputPathIndexType = typename InputPathType::IndexType;
62 using InputPathOffsetType = typename InputPathType::OffsetType;
63 using InputImageType = TInputImage;
64 using InputImagePointer = typename InputImageType::ConstPointer;
65 using InputImageRegionType = typename InputImageType::RegionType;
66 using InputImagePixelType = typename InputImageType::PixelType;
67 using OutputPathType = TOutputPath;
73
75 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
76
78 virtual void
79 SetPathInput(const TInputPath * path);
80
81 const InputPathType *
83
85 virtual void
86 SetImageInput(const TInputImage * image);
87
88 const InputImageType *
90
91protected:
93 ~PathAndImageToPathFilter() override = default;
94
95 void
96 PrintSelf(std::ostream & os, Indent indent) const override;
97
105 void
107};
108} // end namespace itk
109
110#ifndef ITK_MANUAL_INSTANTIATION
111# include "itkPathAndImageToPathFilter.hxx"
112#endif
113
114#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
virtual void SetPathInput(const TInputPath *path)
~PathAndImageToPathFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
void GenerateInputRequestedRegion() override
const InputPathType * GetPathInput()
virtual void SetImageInput(const TInputImage *image)
const InputImageType * GetImageInput()
PathToPathFilter()=default
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....