ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkZeroDCImageFilter.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 itkZeroDCImageFilter_h
19#define itkZeroDCImageFilter_h
20
24
25namespace itk
26{
40template <typename TImageType>
41class ZeroDCImageFilter : public ImageToImageFilter<TImageType, TImageType>
42{
43public:
44 ITK_DISALLOW_COPY_AND_MOVE(ZeroDCImageFilter);
45
51
53 itkNewMacro(Self);
54
56 itkOverrideGetNameOfClassMacro(ZeroDCImageFilter);
57
59 using ImageRegionType = typename TImageType::RegionType;
60
62 static constexpr unsigned int ImageDimension = TImageType::ImageDimension;
63
66 using PixelType = typename ImageType::PixelType;
67 using ImagePointer = typename ImageType::Pointer;
68
74 GetMean() const
75 {
76 return m_StatisticsFilter->GetMean();
77 }
78
79protected:
81 ~ZeroDCImageFilter() override = default;
82
83 void
84 PrintSelf(std::ostream & os, Indent indent) const override;
85
86 void
87 GenerateData() override;
88
89private:
92};
93} // end namespace itk
94
95#ifndef ITK_MANUAL_INSTANTIATION
96# include "itkZeroDCImageFilter.hxx"
97#endif
98
99#endif
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
Compute min, max, variance and mean of an Image.
typename NumericTraits< PixelType >::RealType RealType
Pixel-wise subtraction of two images.
StatisticsFilterType::Pointer m_StatisticsFilter
static constexpr unsigned int ImageDimension
itk::SubtractImageFilter< ImageType > SubtractFilterType
itk::StatisticsImageFilter< ImageType > StatisticsFilterType
typename StatisticsFilterType::RealType RealType
SmartPointer< const Self > ConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
~ZeroDCImageFilter() override=default
typename ImageType::RegionType ImageRegionType
typename ImageType::PixelType PixelType
typename Superclass::InputImageType ImageType
SubtractFilterType::Pointer m_SubtractFilter
ImageToImageFilter< ImageType, ImageType > Superclass
typename ImageType::Pointer ImagePointer
void GenerateData() override
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....