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{
39template <typename TInputImage, typename TInputPath, typename TOutputImage>
40class ITK_TEMPLATE_EXPORT ImageAndPathToImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
41{
42public:
43 ITK_DISALLOW_COPY_AND_MOVE(ImageAndPathToImageFilter);
44
50
52 itkNewMacro(Self);
53
55 itkOverrideGetNameOfClassMacro(ImageAndPathToImageFilter);
56
58 using InputImageType = TInputImage;
59 using InputImagePointer = typename InputImageType::ConstPointer;
60 using InputImageRegionType = typename InputImageType::RegionType;
61 using InputImagePixelType = typename InputImageType::PixelType;
62 using InputPathType = TInputPath;
69 using OutputImageType = TOutputImage;
70 using OutputImagePointer = typename OutputImageType::Pointer;
71 using OutputImageRegionType = typename OutputImageType::RegionType;
72 using OutputImagePixelType = typename OutputImageType::PixelType;
73
75 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
76 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
77
79 virtual void
80 SetImageInput(const TInputImage * image);
81
82
84 virtual void
85 SetPathInput(const TInputPath * path);
86
87 const InputImageType *
89 const InputPathType *
91
92protected:
98 ~ImageAndPathToImageFilter() override = default;
99
100 void
101 PrintSelf(std::ostream & os, Indent indent) const override;
102};
103} // end namespace itk
104
105#ifndef ITK_MANUAL_INSTANTIATION
106# include "itkImageAndPathToImageFilter.hxx"
107#endif
108
109#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....