ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform_h
00019 #define __itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform_h
00020 
00021 #include "itkTimeVaryingVelocityFieldTransform.h"
00022 
00023 namespace itk
00024 {
00025 
00038 template
00039   <class TScalar, unsigned int NDimensions>
00040 class ITK_EXPORT GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform
00041 : public TimeVaryingVelocityFieldTransform<TScalar, NDimensions>
00042 {
00043 public:
00045   typedef GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform   Self;
00046   typedef TimeVaryingVelocityFieldTransform<TScalar, NDimensions>      Superclass;
00047   typedef SmartPointer<Self>                                           Pointer;
00048   typedef SmartPointer<const Self>                                     ConstPointer;
00049 
00051   itkTypeMacro( GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform,
00052                                                 TimeVaryingVelocityFieldTransform );
00053 
00055   itkSimpleNewMacro( Self );
00056 
00058   itkStaticConstMacro( TimeVaryingVelocityFieldDimension, unsigned int, NDimensions+1 );
00059 
00061   typedef typename Superclass::ScalarType                         ScalarType;
00062   typedef typename Superclass::DerivativeType                     DerivativeType;
00063   typedef typename DerivativeType::ValueType                      DerivativeValueType;
00064   typedef typename Superclass::TimeVaryingVelocityFieldType       TimeVaryingVelocityFieldType;
00065   typedef typename TimeVaryingVelocityFieldType::Pointer          TimeVaryingVelocityFieldPointer;
00066   typedef typename TimeVaryingVelocityFieldType::PixelType        DisplacementVectorType;
00067   typedef typename DisplacementVectorType::ValueType              DisplacementVectorValueType;
00068 
00069 
00074   itkSetMacro( GaussianSpatialSmoothingVarianceForTheUpdateField, ScalarType );
00075   itkGetConstReferenceMacro( GaussianSpatialSmoothingVarianceForTheUpdateField, ScalarType );
00077 
00082   itkSetMacro( GaussianTemporalSmoothingVarianceForTheUpdateField, ScalarType );
00083   itkGetConstReferenceMacro( GaussianTemporalSmoothingVarianceForTheUpdateField, ScalarType );
00085 
00090   itkSetMacro( GaussianSpatialSmoothingVarianceForTheTotalField, ScalarType );
00091   itkGetConstReferenceMacro( GaussianSpatialSmoothingVarianceForTheTotalField, ScalarType );
00093 
00098   itkSetMacro( GaussianTemporalSmoothingVarianceForTheTotalField, ScalarType );
00099   itkGetConstReferenceMacro( GaussianTemporalSmoothingVarianceForTheTotalField, ScalarType );
00101 
00110   virtual void UpdateTransformParameters( DerivativeType & update, ScalarType factor = 1.0 );
00111 
00116   virtual TimeVaryingVelocityFieldPointer GaussianSmoothTimeVaryingVelocityField( TimeVaryingVelocityFieldType *, ScalarType, ScalarType );
00117 
00118 protected:
00119   GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform();
00120   virtual ~GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform();
00121   void PrintSelf( std::ostream& os, Indent indent ) const;
00122 
00126   unsigned long                       m_GaussianSmoothingTempFieldModifiedTime;
00127 
00131   ScalarType                        m_GaussianSpatialSmoothingVarianceForTheUpdateField;
00132   ScalarType                        m_GaussianSpatialSmoothingVarianceForTheTotalField;
00133   ScalarType                        m_GaussianTemporalSmoothingVarianceForTheUpdateField;
00134   ScalarType                        m_GaussianTemporalSmoothingVarianceForTheTotalField;
00135 
00136 private:
00137   GaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform( const Self& ); //purposely not implemented
00138   void operator=( const Self& ); //purposely not implemented
00139 
00140 };
00141 
00142 } // end namespace itk
00143 
00144 #if ITK_TEMPLATE_EXPLICIT
00145 # include "Templates/itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform+-.h"
00146 #endif
00147 
00148 #if ITK_TEMPLATE_TXX
00149 # include "itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform.hxx"
00150 #endif
00151 
00152 #endif // __itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform_h
00153