ITK  4.13.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<typename TParametersValueType, unsigned int NDimensions>
40 : public TimeVaryingVelocityFieldTransform<TParametersValueType, NDimensions>
41 {
42 public:
48 
52 
54  itkNewMacro( Self );
55 
57  itkStaticConstMacro( TimeVaryingVelocityFieldDimension, unsigned int, NDimensions+1 );
58 
61  typedef typename Superclass::DerivativeType DerivativeType;
62  typedef typename DerivativeType::ValueType DerivativeValueType;
63  typedef typename Superclass::VelocityFieldType VelocityFieldType;
64 
65  typedef typename Superclass::TimeVaryingVelocityFieldType TimeVaryingVelocityFieldType;
66  typedef typename Superclass::TimeVaryingVelocityFieldPointer TimeVaryingVelocityFieldPointer;
67 
68  typedef typename VelocityFieldType::PixelType DisplacementVectorType;
69  typedef typename DisplacementVectorType::ValueType DisplacementVectorValueType;
70 
71 
76  itkSetMacro( GaussianSpatialSmoothingVarianceForTheUpdateField, ScalarType );
77  itkGetConstReferenceMacro( GaussianSpatialSmoothingVarianceForTheUpdateField, ScalarType );
79 
84  itkSetMacro( GaussianTemporalSmoothingVarianceForTheUpdateField, ScalarType );
85  itkGetConstReferenceMacro( GaussianTemporalSmoothingVarianceForTheUpdateField, ScalarType );
87 
92  itkSetMacro( GaussianSpatialSmoothingVarianceForTheTotalField, ScalarType );
93  itkGetConstReferenceMacro( GaussianSpatialSmoothingVarianceForTheTotalField, ScalarType );
95 
100  itkSetMacro( GaussianTemporalSmoothingVarianceForTheTotalField, ScalarType );
101  itkGetConstReferenceMacro( GaussianTemporalSmoothingVarianceForTheTotalField, ScalarType );
103 
112  virtual void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 ) ITK_OVERRIDE;
113 
118  virtual TimeVaryingVelocityFieldPointer GaussianSmoothTimeVaryingVelocityField( VelocityFieldType *, ScalarType, ScalarType );
119 
120 protected:
122  virtual ~GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform() ITK_OVERRIDE;
123  virtual void PrintSelf( std::ostream& os, Indent indent ) const ITK_OVERRIDE;
124 
128  ModifiedTimeType m_GaussianSmoothingTempFieldModifiedTime;
129 
133  ScalarType m_GaussianSpatialSmoothingVarianceForTheUpdateField;
134  ScalarType m_GaussianSpatialSmoothingVarianceForTheTotalField;
135  ScalarType m_GaussianTemporalSmoothingVarianceForTheUpdateField;
136  ScalarType m_GaussianTemporalSmoothingVarianceForTheTotalField;
137 
138 private:
139  ITK_DISALLOW_COPY_AND_ASSIGN(GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform);
140 
141 };
142 
143 } // end namespace itk
144 
145 #ifndef ITK_MANUAL_INSTANTIATION
146 # include "itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform.hxx"
147 #endif
148 
149 #endif // itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform_h
Transform objects based on integration of a time-varying velocity field.
Light weight base class for most itk classes.
unsigned long ModifiedTimeType
Definition: itkIntTypes.h:164
Modifies the UpdateTransformParameters method to peform a Gaussian smoothing of the velocity field af...
Control indentation during Print() invocation.
Definition: itkIndent.h:49