ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform.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 __itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform_h
19 #define __itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform_h
20 
22 
23 namespace itk
24 {
25 
38 template
39  <class TScalar, unsigned int NDimensions>
41 : public TimeVaryingVelocityFieldTransform<TScalar, NDimensions>
42 {
43 public:
49 
53 
55  itkNewMacro( Self );
56 
58  itkStaticConstMacro( TimeVaryingVelocityFieldDimension, unsigned int, NDimensions+1 );
59 
63  typedef typename DerivativeType::ValueType DerivativeValueType;
65 
68 
69  typedef typename VelocityFieldType::PixelType DisplacementVectorType;
70  typedef typename DisplacementVectorType::ValueType DisplacementVectorValueType;
71 
72 
77  itkSetMacro( GaussianSpatialSmoothingVarianceForTheUpdateField, ScalarType );
78  itkGetConstReferenceMacro( GaussianSpatialSmoothingVarianceForTheUpdateField, ScalarType );
80 
85  itkSetMacro( GaussianTemporalSmoothingVarianceForTheUpdateField, ScalarType );
86  itkGetConstReferenceMacro( GaussianTemporalSmoothingVarianceForTheUpdateField, ScalarType );
88 
93  itkSetMacro( GaussianSpatialSmoothingVarianceForTheTotalField, ScalarType );
94  itkGetConstReferenceMacro( GaussianSpatialSmoothingVarianceForTheTotalField, ScalarType );
96 
101  itkSetMacro( GaussianTemporalSmoothingVarianceForTheTotalField, ScalarType );
102  itkGetConstReferenceMacro( GaussianTemporalSmoothingVarianceForTheTotalField, ScalarType );
104 
113  virtual void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 );
114 
120 
121 protected:
124  void PrintSelf( std::ostream& os, Indent indent ) const;
125 
130 
138 
139 private:
140  GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform( const Self& ); //purposely not implemented
141  void operator=( const Self& ); //purposely not implemented
142 
143 };
144 
145 } // end namespace itk
146 
147 #ifndef ITK_MANUAL_INSTANTIATION
148 # include "itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform.hxx"
149 #endif
150 
151 #endif // __itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform_h
Transform objects based on integration of a time-varying velocity field.
Light weight base class for most itk classes.
void PrintSelf(std::ostream &os, Indent indent) const
unsigned long ModifiedTimeType
Definition: itkIntTypes.h:164
Modifies the UpdateTransformParameters method to peform a Gaussian smoothing of the velocity field af...
virtual TimeVaryingVelocityFieldPointer GaussianSmoothTimeVaryingVelocityField(VelocityFieldType *, ScalarType, ScalarType)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual void UpdateTransformParameters(const DerivativeType &update, ScalarType factor=1.0)