itkEulerAnisotropicSimilarity3DTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkEulerAnisotropicSimilarity3DTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-03-03 15:09:08 $
00007   Version:   $Revision: 1.14 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 
00018 #ifndef __itkEulerAnisotropicSimilarity3DTransform_h
00019 #define __itkEulerAnisotropicSimilarity3DTransform_h
00020 
00021 #include <iostream>
00022 #include "itkEuler3DTransform.h"
00023 
00024 namespace itk
00025 {
00026 
00048 template < class TScalarType=double >  // Data type for scalars:float or double
00049 class ITK_EXPORT EulerAnisotropicSimilarity3DTransform : 
00050             public Euler3DTransform< TScalarType > 
00051 {
00052 public:
00054   typedef EulerAnisotropicSimilarity3DTransform             Self;
00055   typedef Euler3DTransform< TScalarType >         Superclass;
00056   typedef SmartPointer<Self>                      Pointer;
00057   typedef SmartPointer<const Self>                ConstPointer;
00058       
00060   itkNewMacro( Self );
00061 
00063   itkTypeMacro( EulerAnisotropicSimilarity3DTransform, Euler3DTransform );
00064 
00066   itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
00067   itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00068   itkStaticConstMacro(ParametersDimension, unsigned int, 9);
00069 
00071   typedef typename Superclass::ParametersType         ParametersType;
00072   typedef typename Superclass::JacobianType           JacobianType;
00073   typedef typename Superclass::ScalarType             ScalarType;
00074   typedef typename Superclass::InputPointType         InputPointType;
00075   typedef typename Superclass::OutputPointType        OutputPointType;
00076   typedef typename Superclass::InputVectorType        InputVectorType;
00077   typedef typename Superclass::OutputVectorType       OutputVectorType;
00078   typedef typename Superclass::InputVnlVectorType     InputVnlVectorType;
00079   typedef typename Superclass::OutputVnlVectorType    OutputVnlVectorType;
00080   typedef typename Superclass::InputCovariantVectorType 
00081                                                       InputCovariantVectorType;
00082   typedef typename Superclass::OutputCovariantVectorType
00083                                                       OutputCovariantVectorType;
00084   typedef typename Superclass::MatrixType             MatrixType;
00085   typedef typename Superclass::InverseMatrixType      InverseMatrixType;
00086   typedef typename Superclass::CenterType             CenterType;
00087   typedef typename Superclass::OffsetType             OffsetType;
00088   typedef typename Superclass::TranslationType        TranslationType;
00089 
00090   typedef typename Superclass::AngleType              AngleType;
00091 
00093   typedef Vector<TScalarType, 3> 
00094                                                       ScaleVectorType;
00095 
00099   virtual void SetMatrix(const MatrixType &matrix);
00100 
00108   virtual void SetParameters( const ParametersType & parameters );
00109   virtual const ParametersType& GetParameters(void) const;
00110 
00111   void SetScale( const ScaleVectorType & scale );
00112   itkGetConstReferenceMacro( Scale, ScaleVectorType );
00113 
00114   void SetIdentity();
00115 
00120   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00121 
00122 protected:
00123   EulerAnisotropicSimilarity3DTransform();
00124   EulerAnisotropicSimilarity3DTransform(const MatrixType &matrix,
00125                              const OutputVectorType &offset);
00126   EulerAnisotropicSimilarity3DTransform(unsigned int outputDims,
00127                              unsigned int paramDims);
00128   ~EulerAnisotropicSimilarity3DTransform(){}
00129 
00130   void PrintSelf(std::ostream &os, Indent indent) const;
00131 
00132   void SetVarScale(const ScaleVectorType & scale)
00133     { m_Scale = scale; }
00134 
00136   void ComputeMatrix(void);
00137   void ComputeMatrixParameters(void);
00138 
00139 private:
00140   EulerAnisotropicSimilarity3DTransform(const Self&); //purposely not implemented
00141   void operator=(const Self&); //purposely not implemented
00142 
00144   ScaleVectorType          m_Scale;
00145 
00146 }; //class EulerAnisotropicSimilarity3DTransform
00147 
00148 
00149 }  // namespace itk
00150 
00151 // Define instantiation macro for this template.
00152 #define ITK_TEMPLATE_EulerAnisotropicSimilarity3DTransform(_, EXPORT, x, y) namespace itk { \
00153   _(1(class EXPORT EulerAnisotropicSimilarity3DTransform< ITK_TEMPLATE_1 x >)) \
00154   namespace Templates { typedef EulerAnisotropicSimilarity3DTransform< ITK_TEMPLATE_1 x > \
00155                                                   EulerAnisotropicSimilarity3DTransform##y; } \
00156   }
00157 
00158 #if ITK_TEMPLATE_EXPLICIT
00159 # include "Templates/itkEulerAnisotropicSimilarity3DTransform+-.h"
00160 #endif
00161 
00162 #if ITK_TEMPLATE_TXX
00163 # include "itkEulerAnisotropicSimilarity3DTransform.txx"
00164 #endif
00165 
00166 
00167 #endif /* __EulerAnisotropicSimilarity3DTransform_h */

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1