ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkElasticBodySplineKernelTransform.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 __itkElasticBodySplineKernelTransform_h
00019 #define __itkElasticBodySplineKernelTransform_h
00020 
00021 #include "itkKernelTransform.h"
00022 
00023 namespace itk
00024 {
00039 template< class TScalarType = double,   // Data type for scalars (float or
00040                                         // double)
00041           unsigned int NDimensions = 3 >
00042 // Number of dimensions
00043 class ITK_EXPORT ElasticBodySplineKernelTransform:
00044   public KernelTransform<  TScalarType, NDimensions >
00045 {
00046 public:
00048   typedef ElasticBodySplineKernelTransform Self;
00049   typedef KernelTransform<  TScalarType,
00050                             NDimensions > Superclass;
00051 
00052   typedef SmartPointer< Self >       Pointer;
00053   typedef SmartPointer< const Self > ConstPointer;
00054 
00056   itkTypeMacro(ElasticBodySplineKernelTransform, KernelTransform);
00057 
00059   itkNewMacro(Self);
00060 
00062   typedef typename Superclass::ScalarType ScalarType;
00063 
00065   typedef typename Superclass::ParametersType ParametersType;
00066 
00068   typedef typename Superclass::JacobianType JacobianType;
00069 
00071   itkStaticConstMacro(SpaceDimension, unsigned int, Superclass::SpaceDimension);
00072 
00076   itkSetMacro(Alpha, TScalarType);
00077 
00079   itkGetConstMacro(Alpha, TScalarType);
00080 
00081   typedef typename Superclass::InputPointType            InputPointType;
00082   typedef typename Superclass::OutputPointType           OutputPointType;
00083   typedef typename Superclass::InputVectorType           InputVectorType;
00084   typedef typename Superclass::OutputVectorType          OutputVectorType;
00085   typedef typename Superclass::InputCovariantVectorType  InputCovariantVectorType;
00086   typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
00087 protected:
00088   ElasticBodySplineKernelTransform();
00089   virtual ~ElasticBodySplineKernelTransform();
00090   void PrintSelf(std::ostream & os, Indent indent) const;
00091 
00092   typedef typename Superclass::GMatrixType GMatrixType;
00104   virtual void ComputeG(const InputVectorType & landmarkVector, GMatrixType & gmatrix) const;
00105 
00109   TScalarType m_Alpha;
00110 private:
00111   ElasticBodySplineKernelTransform(const Self &); //purposely not implemented
00112   void operator=(const Self &);                   //purposely not implemented
00113 };
00114 } // namespace itk
00116 
00117 // Define instantiation macro for this template.
00118 #define ITK_TEMPLATE_ElasticBodySplineKernelTransform(_, EXPORT, TypeX, TypeY)     \
00119   namespace itk                                                                    \
00120   {                                                                                \
00121   _( 2 ( class EXPORT ElasticBodySplineKernelTransform< ITK_TEMPLATE_2 TypeX > ) ) \
00122   namespace Templates                                                              \
00123   {                                                                                \
00124   typedef ElasticBodySplineKernelTransform< ITK_TEMPLATE_2 TypeX >                 \
00125   ElasticBodySplineKernelTransform##TypeY;                                       \
00126   }                                                                                \
00127   }
00128 
00129 #if ITK_TEMPLATE_EXPLICIT
00130 #include "Templates/itkElasticBodySplineKernelTransform+-.h"
00131 #endif
00132 
00133 #if ITK_TEMPLATE_TXX
00134 #include "itkElasticBodySplineKernelTransform.hxx"
00135 #endif
00136 
00137 #endif // __itkElasticBodySplineKernelTransform_h
00138