ITK  5.0.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:
44 
50 
54 
56  itkNewMacro( Self );
57 
59  static constexpr unsigned int TimeVaryingVelocityFieldDimension = NDimensions+1;
60 
63  using DerivativeType = typename Superclass::DerivativeType;
64  using DerivativeValueType = typename DerivativeType::ValueType;
65  using VelocityFieldType = typename Superclass::VelocityFieldType;
66 
67  using TimeVaryingVelocityFieldType = typename Superclass::TimeVaryingVelocityFieldType;
68  using TimeVaryingVelocityFieldPointer = typename Superclass::TimeVaryingVelocityFieldPointer;
69 
70  using DisplacementVectorType = typename VelocityFieldType::PixelType;
71  using DisplacementVectorValueType = typename DisplacementVectorType::ValueType;
72 
73 
78  itkSetMacro( GaussianSpatialSmoothingVarianceForTheUpdateField, ScalarType );
79  itkGetConstReferenceMacro( GaussianSpatialSmoothingVarianceForTheUpdateField, ScalarType );
81 
86  itkSetMacro( GaussianTemporalSmoothingVarianceForTheUpdateField, ScalarType );
87  itkGetConstReferenceMacro( GaussianTemporalSmoothingVarianceForTheUpdateField, ScalarType );
89 
94  itkSetMacro( GaussianSpatialSmoothingVarianceForTheTotalField, ScalarType );
95  itkGetConstReferenceMacro( GaussianSpatialSmoothingVarianceForTheTotalField, ScalarType );
97 
102  itkSetMacro( GaussianTemporalSmoothingVarianceForTheTotalField, ScalarType );
103  itkGetConstReferenceMacro( GaussianTemporalSmoothingVarianceForTheTotalField, ScalarType );
105 
114  void UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 ) override;
115 
120  virtual TimeVaryingVelocityFieldPointer GaussianSmoothTimeVaryingVelocityField( VelocityFieldType *, ScalarType, ScalarType );
121 
122 protected:
125  void PrintSelf( std::ostream& os, Indent indent ) const override;
126 
130  ModifiedTimeType m_GaussianSmoothingTempFieldModifiedTime{0};
131 
139 };
140 
141 } // end namespace itk
142 
143 #ifndef ITK_MANUAL_INSTANTIATION
144 # include "itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform.hxx"
145 #endif
146 
147 #endif // itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform_h
Transform objects based on integration of a time-varying velocity field.
Light weight base class for most itk classes.
Modifies the UpdateTransformParameters method to peform a Gaussian smoothing of the velocity field af...
unsigned long ModifiedTimeType
Definition: itkIntTypes.h:104
typename Superclass::DerivativeType DerivativeType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::ScalarType ScalarType