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

itkCenteredSimilarity2DTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkCenteredSimilarity2DTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-11-29 01:38:00 $
00007   Version:   $Revision: 1.9 $
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 __itkCenteredSimilarity2DTransform_h
00019 #define __itkCenteredSimilarity2DTransform_h
00020 
00021 #include <iostream>
00022 #include "itkSimilarity2DTransform.h"
00023 
00024 namespace itk
00025 {
00026 
00056 template < class TScalarType=double >    // Data type for scalars
00057 class ITK_EXPORT CenteredSimilarity2DTransform : 
00058             public Similarity2DTransform< TScalarType > 
00059 {
00060 public:
00062   typedef CenteredSimilarity2DTransform          Self;
00063   typedef Similarity2DTransform< TScalarType >   Superclass;
00064   typedef SmartPointer<Self>                     Pointer;
00065   typedef SmartPointer<const Self>               ConstPointer;
00066 
00068   itkNewMacro( Self );
00069 
00071   itkTypeMacro( CenteredSimilarity2DTransform, Similarity2DTransform );
00072 
00074   itkStaticConstMacro(SpaceDimension,           unsigned int, 2);
00075   itkStaticConstMacro(InputSpaceDimension,      unsigned int, 2);
00076   itkStaticConstMacro(OutputSpaceDimension,     unsigned int, 2);
00077   itkStaticConstMacro(ParametersDimension,      unsigned int, 6);
00079 
00081   typedef typename Superclass::ScalarType  ScalarType;
00082 
00084   typedef typename Superclass::ParametersType         ParametersType;
00085   typedef typename Superclass::ParametersValueType    ParametersValueType;
00086 
00088   typedef typename Superclass::JacobianType  JacobianType;
00089 
00091   typedef typename Superclass::OffsetType       OffsetType;
00092   typedef typename Superclass::OffsetValueType  OffsetValueType;
00093 
00095   typedef typename Superclass::InputPointType   InputPointType;
00096   typedef typename Superclass::OutputPointType  OutputPointType;
00097   typedef typename InputPointType::ValueType    InputPointValueType;
00098 
00100   typedef typename Superclass::InputVectorType   InputVectorType;
00101   typedef typename Superclass::OutputVectorType  OutputVectorType;
00102 
00104   typedef typename Superclass::InputCovariantVectorType   
00105                                                  InputCovariantVectorType;
00106   typedef typename Superclass::OutputCovariantVectorType  
00107                                                  OutputCovariantVectorType;
00108 
00110   typedef typename Superclass::InputVnlVectorType   InputVnlVectorType;
00111   typedef typename Superclass::OutputVnlVectorType  OutputVnlVectorType;
00112 
00115   typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
00116   typedef typename InverseTransformBaseType::Pointer    InverseTransformBasePointer;
00117 
00127   void SetParameters( const ParametersType & parameters );
00128 
00138   const ParametersType & GetParameters( void ) const; 
00139 
00144   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00145 
00148   virtual void SetFixedParameters( const ParametersType & );
00149 
00152   virtual const ParametersType& GetFixedParameters(void) const;
00153 
00157   void CloneInverseTo( Pointer & newinverse ) const;
00158 
00160   bool GetInverse(Self* inverse) const;
00161 
00163   virtual InverseTransformBasePointer GetInverseTransform() const;
00164 
00168   void CloneTo( Pointer & clone ) const;
00169 
00170 protected:
00171   CenteredSimilarity2DTransform();
00172   CenteredSimilarity2DTransform( unsigned int spaceDimension, 
00173                                  unsigned int parametersDimension);
00174 
00175   ~CenteredSimilarity2DTransform(){};
00176   void PrintSelf(std::ostream &os, Indent indent) const;
00177 
00178 private:
00179   CenteredSimilarity2DTransform(const Self&); //purposely not implemented
00180   void operator=(const Self&); //purposely not implemented
00181 
00182 }; //class CenteredSimilarity2DTransform
00183 
00184 
00185 }  // namespace itk
00186 
00187 /* Define instantiation macro for this template. */
00188 #define ITK_TEMPLATE_CenteredSimilarity2DTransform(_, EXPORT, x, y) namespace itk { \
00189   _(1(class EXPORT CenteredSimilarity2DTransform< ITK_TEMPLATE_1 x >)) \
00190   namespace Templates { typedef CenteredSimilarity2DTransform< ITK_TEMPLATE_1 x > \
00191                                             CenteredSimilarity2DTransform##y; } \
00192   }
00193 
00194 #if ITK_TEMPLATE_EXPLICIT
00195 # include "Templates/itkCenteredSimilarity2DTransform+-.h"
00196 #endif
00197 
00198 #if ITK_TEMPLATE_TXX
00199 # include "itkCenteredSimilarity2DTransform.txx"
00200 #endif
00201 
00202 #endif /* __itkCenteredSimilarity2DTransform_h */
00203 

Generated at Fri Apr 16 18:03:28 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000