freImageToImageMetricControllerBase.txx

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: freImageToImageMetricControllerBase.txx,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 __freImageToImageMetricControllerBase_txx
00023 #define __freImageToImageMetricControllerBase_txx
00024 
00025 #include "freImageToImageMetricControllerBase.h"
00026 #include "freImageMediaControllerBase.h"
00027 
00028 namespace FREE
00029 {
00030 
00031 
00035 
00036 template <class TControlledMetric>
00037 const char* const ImageToImageMetricControllerBase<TControlledMetric>
00038 :: MediaID_movingImage = "movingImage";
00039 
00040 template <class TControlledMetric>
00041 const char* const ImageToImageMetricControllerBase<TControlledMetric>
00042 :: MediaIDDsc_movingImage = "Media that is used internally as moving image by the metric.";
00043 
00044 template <class TControlledMetric>
00045 const char* const ImageToImageMetricControllerBase<TControlledMetric>
00046 :: MediaID_fixedImage = "fixedImage";
00047 
00048 template <class TControlledMetric>
00049 const char* const ImageToImageMetricControllerBase<TControlledMetric>
00050 :: MediaIDDsc_fixedImage = "Media that is used internally as fixed image by the metric.";
00051 
00052 
00053 template <class TControlledMetric>
00054 ImageToImageMetricControllerBase<TControlledMetric>::
00055 ImageToImageMetricControllerBase()
00056 {
00057     this->UpdateControllerID(ControllerID::ImageToImageMetricControllerBase);
00058     this->m_Description = "Base class of controller controlling image metrics; not for practical use.";
00059 };
00060 
00061 template <class TControlledMetric>
00062 void 
00063 ImageToImageMetricControllerBase<TControlledMetric>::
00064 GenerateProfile(CtrlProfile::ControllerProfile& profile,
00065                        const SessionComponentCache* pComponentCache,
00066                        bool bRegardOldSetup) const
00067 {
00068   Superclass::GenerateProfile(profile,pComponentCache,bRegardOldSetup);
00069 
00070   //Media
00071   profile.MediaMap().AddMedia("movingImage",ControllerID::ImageMediaControllerBase,DASet,ComponentType::MovingImageType::GetImageDimension(),1,true);
00072   profile.MediaMap().AddMedia("fixedImage",ControllerID::ImageMediaControllerBase,DASet,ComponentType::FixedImageType::GetImageDimension(),1,true);
00073 };
00074 
00075 } //end of namespace FREE
00076 
00077 #endif

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