ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkNormalizeImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  * http://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 
26 namespace itk
27 {
48 template< typename TInputImage, typename TOutputImage >
50  public ImageToImageFilter< TInputImage, TOutputImage >
51 {
52 public:
58 
60  itkNewMacro(Self);
61 
64 
66  typedef typename TInputImage::Pointer InputImagePointer;
67  typedef typename TOutputImage::Pointer OutputImagePointer;
68 
70  virtual void Modified() const ITK_OVERRIDE;
71 
72 protected:
74 
76  void GenerateData() ITK_OVERRIDE;
77 
78  // Override since the filter needs all the data for the algorithm
79  void GenerateInputRequestedRegion() ITK_OVERRIDE;
80 
81 private:
82  NormalizeImageFilter(const Self &) ITK_DELETE_FUNCTION;
83  void operator=(const Self &) ITK_DELETE_FUNCTION;
84 
86 
87  typename ShiftScaleImageFilter< TInputImage, TOutputImage >::Pointer m_ShiftScaleFilter;
88 }; // end of class
89 } // end namespace itk
90 
91 #ifndef ITK_MANUAL_INSTANTIATION
92 #include "itkNormalizeImageFilter.hxx"
93 #endif
94 
95 #endif
Shift and scale the pixels in an image.
void GenerateInputRequestedRegion() override
Base class for all process objects that output image data.
TInputImage::Pointer InputImagePointer
SmartPointer< const Self > ConstPointer
ShiftScaleImageFilter< TInputImage, TOutputImage >::Pointer m_ShiftScaleFilter
Compute min. max, variance and mean of an Image.
ImageToImageFilter< TInputImage, TOutputImage > Superclass
virtual void Modified() const override
Normalize an image by setting its mean to zero and variance to one.
void GenerateData() override
StatisticsImageFilter< TInputImage >::Pointer m_StatisticsFilter
Base class for filters that take an image as input and produce an image as output.
TOutputImage::Pointer OutputImagePointer