ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
SplitComponents/include/itkSplitComponentsImageFilter.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 itkSplitComponentsImageFilter_h
19#define itkSplitComponentsImageFilter_h
20
21#include "itkFixedArray.h"
23
24namespace itk
25{
26
47template <typename TInputImage, typename TOutputImage, unsigned int TComponents = TInputImage::ImageDimension>
48class ITK_TEMPLATE_EXPORT SplitComponentsImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
49{
50public:
51 ITK_DISALLOW_COPY_AND_MOVE(SplitComponentsImageFilter);
52
54 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
56 static constexpr unsigned int Components = TComponents;
57
59 using InputImageType = TInputImage;
60 using OutputImageType = TOutputImage;
61 using InputPixelType = typename InputImageType::PixelType;
62 using OutputPixelType = typename OutputImageType::PixelType;
63 using OutputRegionType = typename OutputImageType::RegionType;
64
70
72
74 itkOverrideGetNameOfClassMacro(SplitComponentsImageFilter);
75
77 itkNewMacro(Self);
78
83 itkGetConstReferenceMacro(ComponentsMask, ComponentsMaskType);
84
85protected:
87 ~SplitComponentsImageFilter() override = default;
88
90 void
91 AllocateOutputs() override;
92
93 void
94 DynamicThreadedGenerateData(const OutputRegionType & outputRegion) override;
95
96private:
98};
99
100} // end namespace itk
101
102#ifndef ITK_MANUAL_INSTANTIATION
103# include "itkSplitComponentsImageFilter.hxx"
104#endif
105
106#endif
Simulate a standard C array with copy semantics.
Implements transparent reference counting.
ImageToImageFilter< InputImageType, OutputImageType > Superclass
~SplitComponentsImageFilter() override=default
void DynamicThreadedGenerateData(const OutputRegionType &outputRegion) override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)