ITK  4.13.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 >
49 class ITK_TEMPLATE_EXPORT NormalizeImageFilter:
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  ITK_DISALLOW_COPY_AND_ASSIGN(NormalizeImageFilter);
83 
84  typename StatisticsImageFilter< TInputImage >::Pointer m_StatisticsFilter;
85 
86  typename ShiftScaleImageFilter< TInputImage, TOutputImage >::Pointer m_ShiftScaleFilter;
87 }; // end of class
88 } // end namespace itk
89 
90 #ifndef ITK_MANUAL_INSTANTIATION
91 #include "itkNormalizeImageFilter.hxx"
92 #endif
93 
94 #endif
Shift and scale the pixels in an image.
Base class for all process objects that output image data.
TInputImage::Pointer InputImagePointer
SmartPointer< const Self > ConstPointer
Compute min. max, variance and mean of an Image.
ImageToImageFilter< TInputImage, TOutputImage > Superclass
Normalize an image by setting its mean to zero and variance to one.
Base class for filters that take an image as input and produce an image as output.
TOutputImage::Pointer OutputImagePointer