ITK  4.8.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 
62  typedef typename DerivativeType::ValueType DerivativeValueType;
64 
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 
119 
120 protected:
122  virtual ~GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform();
123  virtual void PrintSelf( std::ostream& os, Indent indent ) const ITK_OVERRIDE;
124 
129 
137 
138 private:
139  GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform( const Self& ); //purposely not implemented
140  void operator=( const Self& ); //purposely not implemented
141 
142 };
143 
144 } // end namespace itk
145 
146 #ifndef ITK_MANUAL_INSTANTIATION
147 # include "itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform.hxx"
148 #endif
149 
150 #endif // itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform_h
Transform objects based on integration of a time-varying velocity field.
Light weight base class for most itk classes.
virtual TimeVaryingVelocityFieldPointer GaussianSmoothTimeVaryingVelocityField(VelocityFieldType *, ScalarType, ScalarType)
unsigned long ModifiedTimeType
Definition: itkIntTypes.h:164
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Modifies the UpdateTransformParameters method to peform a Gaussian smoothing of the velocity field af...
virtual void UpdateTransformParameters(const DerivativeType &update, ScalarType factor=1.0) override
Control indentation during Print() invocation.
Definition: itkIndent.h:49