ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkVariationalRegistrationGaussianRegularizer.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 __itkVariationalRegistrationGaussianRegularizer_h
19 #define __itkVariationalRegistrationGaussianRegularizer_h
20 
22 
23 namespace itk {
24 
45 template< class TDisplacementField >
47  : public VariationalRegistrationRegularizer< TDisplacementField >
48 {
49 public:
53  TDisplacementField > Superclass;
56 
58  itkNewMacro(Self);
59 
61  itkTypeMacro(itkVariationalRegistrationGaussianRegularizer, itkVariationalRegistrationRegularizer);
62 
64  itkStaticConstMacro(ImageDimension, unsigned int, TDisplacementField::ImageDimension);
65 
67  typedef typename Superclass::DisplacementFieldType DisplacementFieldType;
68  typedef typename Superclass::DisplacementFieldPointer DisplacementFieldPointer;
69  typedef typename Superclass::DisplacementFieldConstPointer DisplacementFieldConstPointer;
70  typedef typename Superclass::PixelType PixelType;
71 
72  typedef typename Superclass::ValueType ValueType;
73 
78 
81 
85  itkSetMacro( StandardDeviations, StandardDeviationsType );
86  virtual void SetStandardDeviations( double value );
88 
91  itkGetConstReferenceMacro(StandardDeviations, StandardDeviationsType);
92 
95  itkSetMacro( MaximumError, double );
96 
99  itkGetConstMacro( MaximumError, double );
100 
103  itkSetMacro( MaximumKernelWidth, unsigned int );
104 
107  itkGetConstMacro( MaximumKernelWidth, unsigned int );
108 
109 protected:
112 
114  virtual void PrintSelf(std::ostream& os, Indent indent) const;
115 
118  virtual void GenerateData();
119 
122  virtual void Initialize();
123 
124 private:
125  VariationalRegistrationGaussianRegularizer(const Self&); //purposely not implemented
126  void operator=(const Self&); //purposely not implemented
127 
130 
133 
135  unsigned int m_MaximumKernelWidth;
136 };
137 
138 }
139 
140 #ifndef ITK_MANUAL_INSTANTIATION
141 # include "itkVariationalRegistrationGaussianRegularizer.hxx"
142 #endif
143 
144 #endif
Superclass::RegionType RegionType
Definition: itkImage.h:140
Light weight base class for most itk classes.
Base class for regularization component in the variational registration framework.
VariationalRegistrationRegularizer< TDisplacementField > Superclass
This class performs Gaussian smoothing of a vector field.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Templated n-dimensional image class.
Definition: itkImage.h:75