ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkImageAndPathToImageFilter.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 itkImageAndPathToImageFilter_h
19#define itkImageAndPathToImageFilter_h
20
22
23namespace itk
24{
38template <typename TInputImage, typename TInputPath, typename TOutputImage>
39class ITK_TEMPLATE_EXPORT ImageAndPathToImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
40{
41public:
42 ITK_DISALLOW_COPY_AND_MOVE(ImageAndPathToImageFilter);
43
49
51 itkNewMacro(Self);
52
54 itkOverrideGetNameOfClassMacro(ImageAndPathToImageFilter);
55
57 using InputImageType = TInputImage;
58 using InputImagePointer = typename InputImageType::ConstPointer;
59 using InputImageRegionType = typename InputImageType::RegionType;
60 using InputImagePixelType = typename InputImageType::PixelType;
61 using InputPathType = TInputPath;
68 using OutputImageType = TOutputImage;
69 using OutputImagePointer = typename OutputImageType::Pointer;
70 using OutputImageRegionType = typename OutputImageType::RegionType;
71 using OutputImagePixelType = typename OutputImageType::PixelType;
72
74 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
75 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
76
78 virtual void
79 SetImageInput(const TInputImage * image);
80
81
83 virtual void
84 SetPathInput(const TInputPath * path);
85
86 const InputImageType *
88 const InputPathType *
90
91protected:
97 ~ImageAndPathToImageFilter() override = default;
98
99 void
100 PrintSelf(std::ostream & os, Indent indent) const override;
101};
102} // end namespace itk
103
104#ifndef ITK_MANUAL_INSTANTIATION
105# include "itkImageAndPathToImageFilter.hxx"
106#endif
107
108#endif
InputPathType * GetNonConstPathInput()
virtual void SetPathInput(const TInputPath *path)
const InputPathType * GetPathInput()
void PrintSelf(std::ostream &os, Indent indent) const override
const InputImageType * GetImageInput()
virtual void SetImageInput(const TInputImage *image)
~ImageAndPathToImageFilter() override=default
InputImageType * GetNonConstImageInput()
Control indentation during Print() invocation.
Definition itkIndent.h:50
Index< VDimension > IndexType
ContinuousIndexType OutputType
SmartPointer< Self > Pointer
Offset< VDimension > OffsetType
SmartPointer< const Self > ConstPointer
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....