freTransformFunctionAccessor.h

Go to the documentation of this file.
00001 /*=========================================================================
00002  
00003   Program:   F.R.E.E. - flexible registration evaluation engine
00004   Version:   v.1.0.0
00005   Date:      $Date: 2006/09/01 12:00:00 $
00006   Module:    $RCSfile: freTransformFunctionAccessor.h,v $
00007   Language:  C++
00008  
00009  
00010  
00011   Copyright (c) 2007 Ralf o Floca (Department of Medical Informatics,
00012   Institute for Medical Biometry and Informatics, University of Heidelberg,
00013   Germany). All rights reserved.
00014   See FREECopyright.txt or http://www.mi.med.uni-hd.de/free/copyright.htm
00015   for details.
00016  
00017      This software is distributed WITHOUT ANY WARRANTY; without even 
00018      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00019      PURPOSE.  See the above copyright notices for more information.
00020  
00021 =========================================================================*/
00022 #ifndef __freTransformFunctionAccessor_h
00023 #define __freTransformFunctionAccessor_h
00024 
00025 #include "freITKTransformControllerInterface.h"
00026 
00027 namespace FREE
00028 {
00029 
00030 
00044 template <class TTransformBase>
00045 class TransformFunctionAccessor
00046 {
00047 public:
00049     itkTypeMacro( TransformFunctionAccessor, none );
00050 
00052     typedef TTransformBase TransformType;
00053     typedef typename TransformType::Pointer TransformPointer;
00054 
00055     typedef typename ImageTypes<TransformType::OutputSpaceDimension>::InternalImageType ImageType;
00056     typedef typename ImageType::RegionType                                              RegionType;
00057     typedef typename ImageType::SpacingType                                             SpacingType;
00058     typedef typename ImageTypes<TransformType::OutputSpaceDimension>::PointType         PointType;
00059 
00060     typedef typename TransformType::ParametersType TransformParametersType;
00061 
00062     typedef ITKTransformControllerInterface<typename TransformType::ScalarType,
00063                                             TransformType::InputSpaceDimension,
00064                                             TransformType::OutputSpaceDimension> ITKTransformControllerInterfaceType;
00065     typedef typename ITKTransformControllerInterfaceType::TransformFunctionMediaType TransformFunctionMediaType;
00066     typedef typename ITKTransformControllerInterfaceType::TransformFunctionMediaPointer TransformFunctionMediaPointer;
00067 
00075     virtual TransformFunctionMediaPointer GetTransformationFunction(const TransformParametersType& parameters, const PointType& origin, const RegionType& region, const SpacingType& spacing);
00076     virtual TransformFunctionMediaPointer GetTransformationFunction(const TransformParametersType& parameters);
00077 
00086     virtual TransformFunctionMediaPointer GetInverseTransformationFunction(const TransformParametersType& parameters, const PointType& origin, const RegionType& region, const SpacingType& spacing);
00087     virtual TransformFunctionMediaPointer GetInverseTransformationFunction(const TransformParametersType& parameters);
00088 
00089     TransformFunctionAccessor(SessionComponentCache& cache, const IDPath& transformID);
00090 
00091 protected:
00092 
00094     void GetTransformControllerAndCache(const ITKTransformControllerInterfaceType*& pController, SessionComponentCache*& pCache);
00095 
00097     IDPath m_TransformID;
00098 
00100     SessionComponentCache& m_Cache ;
00101 };
00102 
00103 }//End of Namespace free
00104 
00105 #ifndef ITK_MANUAL_INSTANTIATION
00106 #include "freTransformFunctionAccessor.txx"
00107 #endif
00108 
00109 #endif

Generated at Sat Oct 13 17:58:54 2007 for f.r.e.e. - Flexible Registration and Evaluation Engine by doxygen 1.5.3 written by Dimitri van Heesch, © 1997-2000