ITK  6.0.0
Insight Toolkit
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;
61 using InputImagePixelType = typename InputImageType::PixelType;
62 using InputPathType = TInputPath;
65 using InputPathInputType = typename InputPathType::InputType;
66 using InputPathOutputType = typename InputPathType::OutputType;
68 using InputPathOffsetType = typename InputPathType::OffsetType;
69 using OutputImageType = TOutputImage;
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
Base class for filters that take both a path and an image as input and produce a path as output.
InputPathType * GetNonConstPathInput()
typename InputPathType::ConstPointer InputPathConstPointer
virtual void SetPathInput(const TInputPath *path)
const InputPathType * GetPathInput()
void PrintSelf(std::ostream &os, Indent indent) const override
const InputImageType * GetImageInput()
typename InputPathType::OutputType InputPathOutputType
typename InputPathType::OffsetType InputPathOffsetType
virtual void SetImageInput(const TInputImage *image)
~ImageAndPathToImageFilter() override=default
typename InputPathType::IndexType InputPathIndexType
typename InputPathType::Pointer InputPathPointer
typename InputPathType::InputType InputPathInputType
InputImageType * GetNonConstImageInput()
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
typename InputImageType::Pointer InputImagePointer
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::RegionType InputImageRegionType
Control indentation during Print() invocation.
Definition: itkIndent.h:50
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....