1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
19 #ifndef CLITKRELATIVEPOSITIONANALYZERFILTER_H
20 #define CLITKRELATIVEPOSITIONANALYZERFILTER_H
23 #include "clitkFilterWithAnatomicalFeatureDatabaseManagement.h"
24 #include "clitkFilterBase.h"
25 #include "clitkRelativePositionDataBase.h"
29 //--------------------------------------------------------------------
31 Load a database of relative positions. Analyze it and provide
32 common relative position for each patient.
34 //--------------------------------------------------------------------
36 class RelativePositionDataBaseAnalyzerFilter:
37 public virtual clitk::FilterBase,
38 public clitk::FilterWithAnatomicalFeatureDatabaseManagement
42 RelativePositionDataBaseAnalyzerFilter();
43 virtual ~RelativePositionDataBaseAnalyzerFilter() {}
46 itkGetConstMacro(DatabaseFilename, std::string);
47 itkSetMacro(DatabaseFilename, std::string);
48 itkGetConstMacro(StationName, std::string);
49 itkSetMacro(StationName, std::string);
50 itkGetConstMacro(ObjectName, std::string);
51 itkSetMacro(ObjectName, std::string);
52 itkGetConstMacro(OutputFilename, std::string);
53 itkSetMacro(OutputFilename, std::string);
59 virtual void Update();
62 std::string m_DatabaseFilename;
63 std::string m_StationName;
64 std::string m_ObjectName;
65 std::string m_OutputFilename;
66 clitk::RelativePositionDataBase db;
68 bool ComputeOptimalThreshold(RelativePositionDataBaseIndexType & index, double & threshold);
71 //--------------------------------------------------------------------
73 } // end namespace clitk
74 //--------------------------------------------------------------------
76 #include "clitkRelativePositionDataBaseAnalyzerFilter.txx"