Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkSimilarity3DTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSimilarity3DTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/04/29 18:10:46 $
00007   Version:   $Revision: 1.1 $
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 __itkSimilarity3DTransform_h
00019 #define __itkSimilarity3DTransform_h
00020 
00021 #include <iostream>
00022 #include "itkVersorRigid3DTransform.h"
00023 
00024 namespace itk
00025 {
00026 
00035 template < class TScalarType=double >    // Data type for scalars (float or double)
00036 class ITK_EXPORT Similarity3DTransform : 
00037       public VersorRigid3DTransform< TScalarType > 
00038 {
00039 public:
00041   typedef Similarity3DTransform                  Self;
00042   typedef VersorRigid3DTransform< TScalarType >  Superclass;
00043   typedef SmartPointer<Self>                     Pointer;
00044   typedef SmartPointer<const Self>               ConstPointer;
00045 
00047   itkNewMacro( Self );
00048 
00050   itkTypeMacro( Similarity3DTransform, VersorRigid3DTransform );
00051 
00053   itkStaticConstMacro(SpaceDimension, unsigned int, 3);
00054   itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
00055   itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00056   itkStaticConstMacro(ParametersDimension, unsigned int, 7);
00058 
00060   typedef typename Superclass::ParametersType         ParametersType;
00061   typedef typename Superclass::JacobianType           JacobianType;
00062   typedef typename Superclass::ScalarType             ScalarType;
00063   typedef typename Superclass::InputPointType         InputPointType;
00064   typedef typename Superclass::OutputPointType        OutputPointType;
00065   typedef typename Superclass::InputVectorType        InputVectorType;
00066   typedef typename Superclass::OutputVectorType       OutputVectorType;
00067   typedef typename Superclass::InputVnlVectorType     InputVnlVectorType;
00068   typedef typename Superclass::OutputVnlVectorType    OutputVnlVectorType;
00069   typedef typename Superclass::InputCovariantVectorType 
00070                                                       InputCovariantVectorType;
00071   typedef typename Superclass::OutputCovariantVectorType      
00072                                                       OutputCovariantVectorType;
00073   typedef typename Superclass::MatrixType             MatrixType;
00074   typedef typename Superclass::InverseMatrixType      InverseMatrixType;
00075   typedef typename Superclass::CenterType             CenterType;
00076   typedef typename Superclass::OffsetType             OffsetType;
00077   typedef typename Superclass::TranslationType        TranslationType;
00078 
00080   typedef typename Superclass::VersorType             VersorType;
00081   typedef typename Superclass::AxisType               AxisType;
00082   typedef typename Superclass::AngleType              AngleType;
00083   typedef          TScalarType                        ScaleType;
00084 
00089   void SetParameters( const ParametersType & parameters );
00090   virtual const ParametersType& GetParameters(void) const;
00092 
00094   void SetScale( ScaleType scale );
00095   itkGetConstReferenceMacro( Scale, ScaleType );
00097 
00102   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00103 
00104 protected:
00105   Similarity3DTransform(unsigned int outputSpaceDim,
00106                          unsigned int paramDim);
00107   Similarity3DTransform(const MatrixType & matrix,
00108                          const OutputVectorType & offset);
00109   Similarity3DTransform();
00110   ~Similarity3DTransform(){};
00111 
00112   void PrintSelf(std::ostream &os, Indent indent) const;
00113 
00116   void ComputeMatrix();
00117 
00118 private:
00119   Similarity3DTransform(const Self&); //purposely not implemented
00120   void operator=(const Self&); //purposely not implemented
00121 
00122   ScaleType    m_Scale;
00123 
00124 }; //class Similarity3DTransform
00125 
00126 
00127 }  // namespace itk
00128 
00129 
00130 #ifndef ITK_MANUAL_INSTANTIATION
00131 #include "itkSimilarity3DTransform.txx"
00132 #endif
00133 
00134 #endif /* __itkSimilarity3DTransform_h */
00135 

Generated at Sat Sep 2 21:08:17 2006 for ITK by doxygen 1.4.7 written by Dimitri van Heesch, © 1997-2000