ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkComposeImageFilter.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 itkComposeImageFilter_h
19#define itkComposeImageFilter_h
20
22#include "itkVectorImage.h"
24#include <vector>
25
26namespace itk
27{
59
60template <typename TInputImage,
62class ITK_TEMPLATE_EXPORT ComposeImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
63{
64public:
65 ITK_DISALLOW_COPY_AND_MOVE(ComposeImageFilter);
66
71 itkNewMacro(Self);
72 itkOverrideGetNameOfClassMacro(ComposeImageFilter);
73
74 static constexpr unsigned int Dimension = TInputImage::ImageDimension;
75
76 using InputImageType = TInputImage;
77 using OutputImageType = TOutputImage;
78 using InputPixelType = typename InputImageType::PixelType;
79 using OutputPixelType = typename OutputImageType::PixelType;
80 using RegionType = typename InputImageType::RegionType;
81
82 void
83 SetInput1(const InputImageType * image1);
84 void
85 SetInput2(const InputImageType * image2);
86 void
87 SetInput3(const InputImageType * image3);
88
89 itkConceptMacro(InputCovertibleToOutputCheck,
91
92protected:
94
95 void
97
98 void
100
101 void
102 DynamicThreadedGenerateData(const RegionType & outputRegionForThread) override;
103
104
105private:
106 // we have to specialize the code for complex, because it provides no operator[]
107 // method
109 using InputIteratorContainerType = std::vector<InputIteratorType>;
110};
111} // namespace itk
112
113#ifndef ITK_MANUAL_INSTANTIATION
114# include "itkComposeImageFilter.hxx"
115#endif
116
117#endif
void DynamicThreadedGenerateData(const RegionType &outputRegionForThread) override
void SetInput3(const InputImageType *image3)
void GenerateOutputInformation() override
typename InputImageType::RegionType RegionType
SmartPointer< const Self > ConstPointer
ImageScanlineConstIterator< InputImageType > InputIteratorType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
static constexpr unsigned int Dimension
SmartPointer< Self > Pointer
void SetInput1(const InputImageType *image1)
std::vector< InputIteratorType > InputIteratorContainerType
void SetInput2(const InputImageType *image2)
typename InputImageType::PixelType InputPixelType
typename OutputImageType::PixelType OutputPixelType
void BeforeThreadedGenerateData() override
A multi-dimensional iterator templated over image type that walks a region of pixels,...
Implements transparent reference counting.
Templated n-dimensional vector image class.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....