ITK  6.0.0
Insight Toolkit
itkNormalizeImageFilter.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 itkNormalizeImageFilter_h
19#define itkNormalizeImageFilter_h
20
23
24#include "itkEventObject.h"
25
26namespace itk
27{
53template <typename TInputImage, typename TOutputImage>
54class ITK_TEMPLATE_EXPORT NormalizeImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
55{
56public:
57 ITK_DISALLOW_COPY_AND_MOVE(NormalizeImageFilter);
58
64
66 itkNewMacro(Self);
67
69 itkOverrideGetNameOfClassMacro(NormalizeImageFilter);
70
74
76 void
77 Modified() const override;
78
79protected:
81
83 void
84 GenerateData() override;
85
86 // Override since the filter needs all the data for the algorithm
87 void
89
90private:
91 typename StatisticsImageFilter<TInputImage>::Pointer m_StatisticsFilter{};
92
94}; // end of class
95} // end namespace itk
96
97#ifndef ITK_MANUAL_INSTANTIATION
98# include "itkNormalizeImageFilter.hxx"
99#endif
100
101#endif
Base class for all process objects that output image data.
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
typename InputImageType::Pointer InputImagePointer
Normalize an image by setting its mean to zero and variance to one.
void Modified() const override
void GenerateData() override
void GenerateInputRequestedRegion() override
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....