ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkAccumulateImageFilter.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 itkAccumulateImageFilter_h
19#define itkAccumulateImageFilter_h
20
22
23namespace itk
24{
53template <typename TInputImage, typename TOutputImage>
54class ITK_TEMPLATE_EXPORT AccumulateImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
55{
56public:
57 ITK_DISALLOW_COPY_AND_MOVE(AccumulateImageFilter);
58
64
66 itkNewMacro(Self);
67
69 itkOverrideGetNameOfClassMacro(AccumulateImageFilter);
70
72 using InputImageType = TInputImage;
73 using InputImagePointer = typename InputImageType::Pointer;
74 using InputImageRegionType = typename InputImageType::RegionType;
75 using InputImagePixelType = typename InputImageType::PixelType;
76
77 using OutputImageType = TOutputImage;
78 using OutputImagePointer = typename OutputImageType::Pointer;
79 using OutputImageRegionType = typename OutputImageType::RegionType;
80 using OutputImagePixelType = typename OutputImageType::PixelType;
81
83 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
84 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
85
89
93 itkGetConstMacro(AccumulateDimension, unsigned int);
94 itkSetMacro(AccumulateDimension, unsigned int);
96
102 itkSetMacro(Average, bool);
103 itkGetConstMacro(Average, bool);
104 itkBooleanMacro(Average);
106
107protected:
109 ~AccumulateImageFilter() override = default;
110 void
111 PrintSelf(std::ostream & os, Indent indent) const override;
112
114 void
116
118 void
120
125 void
126 GenerateData() override;
127
128private:
129 unsigned int m_AccumulateDimension{};
130 bool m_Average{};
131};
132} // end namespace itk
133
134#ifndef ITK_MANUAL_INSTANTIATION
135# include "itkAccumulateImageFilter.hxx"
136#endif
137
138#endif
ImageToImageFilter< TInputImage, TOutputImage > Superclass
void GenerateData() override
typename OutputImageType::RegionType OutputImageRegionType
void GenerateOutputInformation() override
~AccumulateImageFilter() override=default
SmartPointer< const Self > ConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
static constexpr unsigned int OutputImageDimension
typename InputImageType::RegionType InputImageRegionType
typename OutputImageType::Pointer OutputImagePointer
typename OutputImageType::PixelType OutputImagePixelType
void GenerateInputRequestedRegion() override
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
static constexpr unsigned int InputImageDimension
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....