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: freImageClassificationSOMetricThread.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 __freImageClassificationSOMetricThread_h 00023 #define __freImageClassificationSOMetricThread_h 00024 00025 #include "freSetupOptimizationMetricThreadBase.h" 00026 00027 #include "freImageClassificationSOMetricMonitor.h" 00028 #include "freIDPath.h" 00029 #include "freSessionInfo.h" 00030 00031 namespace FREE 00032 { 00033 00043 template <unsigned int VImageDimension> 00044 class ITK_EXPORT ImageClassificationSOMetricThread : 00045 public SetupOptimizationMetricThreadBase<ImageClassificationSOMetricMonitor> 00046 { 00047 public: 00049 typedef ImageClassificationSOMetricThread<VImageDimension> Self; 00050 typedef SetupOptimizationMetricThreadBase<ImageClassificationSOMetricMonitor> Superclass; 00051 typedef itk::SmartPointer<Self> Pointer; 00052 typedef itk::SmartPointer<const Self> ConstPointer; 00053 00054 typedef typename Superclass::ThreadIDType ThreadIDType; 00055 typedef typename Superclass::MonitorType MonitorType; 00056 typedef typename Superclass::ResultType ResultType; 00057 00059 itkTypeMacro( ImageClassificationSOMetricThread<VImageDimension>, SetupOptimizationMetricThreadBase<ImageClassificationSOMetricMonitor> ); 00060 itkNewMacro(Self); 00061 00062 void SetResultImagePath(const IDPath& path); 00063 const IDPath& GetResultImagePath() const; 00064 00065 void SetReferenceImagePath(const IDPath& path); 00066 const IDPath& GetReferenceImagePath() const; 00067 00068 void SetLowerClassThreshold(const double& dLower); 00069 const double& GetLowerClassThreshold() const; 00070 00071 void SetUpperClassThreshold(const double& dUpper); 00072 const double& GetUpperClassThreshold() const; 00073 00074 protected: 00075 00076 ImageClassificationSOMetricThread(); 00077 00078 virtual ~ImageClassificationSOMetricThread(); 00079 00080 virtual bool ProcessSetup(Setup* pAdaptationSetup) throw(); 00081 00082 typedef typename ImageTypes<VImageDimension>::InternalImageType ImageType; 00083 00086 void EvaluateResult(ImageType* pResultImage, ImageType* pReferenceImage); 00087 00088 IDPath m_ResultImagePath; 00089 IDPath m_ReferenceImagePath; 00090 00091 double m_dUpper; 00092 double m_dLower; 00093 00094 private: 00095 ImageClassificationSOMetricThread(const Self&); //purposely not implemented 00096 void operator=(const Self&); //purposely not implemented 00097 }; 00098 00099 } // end namespace FREE 00100 00101 #ifndef ITK_MANUAL_INSTANTIATION 00102 #include "freImageClassificationSOMetricThread.txx" 00103 #endif 00104 00105 #endif 00106 00107 00108
1.5.3 written by Dimitri van Heesch,
© 1997-2000