ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkGaussianSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor.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 __itkGaussianSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor_h
00019 #define __itkGaussianSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor_h
00020 
00021 #include "itkDisplacementFieldTransformParametersAdaptor.h"
00022 
00023 namespace itk
00024 {
00032 template<class TTransform>
00033 class ITK_EXPORT GaussianSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor
00034 : public DisplacementFieldTransformParametersAdaptor<TTransform>
00035 {
00036 public:
00037 
00039   typedef GaussianSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor          Self;
00040   typedef DisplacementFieldTransformParametersAdaptor<TTransform>                       Superclass;
00041   typedef SmartPointer<Self>                                                            Pointer;
00042   typedef SmartPointer<const Self>                                                      ConstPointer;
00043 
00045   itkNewMacro( Self );
00046 
00048   itkTypeMacro( GaussianSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor,
00049     DisplacementFieldTransformParametersAdaptor );
00050 
00051   typedef TTransform                               TransformType;
00052   typedef typename TransformType::ScalarType       ScalarType;
00053 
00057   virtual void SetGaussianSmoothingVarianceForTheUpdateField( ScalarType );
00058   itkGetConstReferenceMacro( GaussianSmoothingVarianceForTheUpdateField, ScalarType );
00060 
00064   virtual void SetGaussianSmoothingVarianceForTheTotalField( const ScalarType );
00065   itkGetConstReferenceMacro( GaussianSmoothingVarianceForTheTotalField, ScalarType );
00067 
00068   virtual void AdaptTransformParameters();
00069 
00070 protected:
00071   GaussianSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor();
00072   ~GaussianSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor();
00073 
00074   void PrintSelf( std::ostream & os, Indent indent ) const;
00075 
00076 private:
00077   GaussianSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor( const Self & ); //purposely not implemented
00078   void operator=( const Self & );             //purposely not implemented
00079 
00080   ScalarType          m_GaussianSmoothingVarianceForTheUpdateField;
00081   ScalarType          m_GaussianSmoothingVarianceForTheTotalField;
00082 
00083   unsigned long       m_GaussianSmoothingVarianceForTheUpdateFieldSetTime;
00084   unsigned long       m_GaussianSmoothingVarianceForTheTotalFieldSetTime;
00085 
00086 }; //class GaussianSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor
00087 }  // namespace itk
00088 
00089 #ifndef ITK_MANUAL_INSTANTIATION
00090 #include "itkGaussianSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor.hxx"
00091 #endif
00092 
00093 #endif /* __itkGaussianSmoothingOnUpdateDisplacementFieldTransformParametersAdaptor_h */
00094