My Project
slopeclassifier.hh
Go to the documentation of this file.
1 /* -*- mia-c++ -*-
2  *
3  * This file is part of MIA - a toolbox for medical image analysis
4  * Copyright (c) Leipzig, Madrid 1999-2017 Gert Wollny
5  *
6  * MIA is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with MIA; if not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 #include <vector>
22 #include <mia/core/slopevector.hh>
23 
24 
25 #ifndef mia_core_classifier_hh
26 #define mia_core_classifier_hh
27 
29 
39 {
40 public:
43 
44 
48  typedef struct {
50  float corr;
52  int row1;
54  int row2;
55  } SCorrelation;
56 
62  CSlopeClassifier(const Columns& m, bool mean_stripped);
63 
66 
68 
70  CSlopeClassifier& operator =(const CSlopeClassifier& other);
71 
73 
75  int get_periodic_idx() const;
76 
78  int get_RV_idx()const;
79 
81  int get_LV_idx() const;
82 
84  int get_baseline_idx() const;
85 
87  int get_perfusion_idx() const;
88 
90  int get_RV_peak()const;
91 
93  int get_LV_peak() const;
94 
97 
100 
102  int index() const;
103 
104 private:
105  struct CSlopeClassifierImpl *impl;
106 };
107 
109 float EXPORT_CORE correlation(const std::vector<float>& a, const std::vector<float>& b);
110 
112 
113 #endif
CSlopeColumns
std::vector< std::vector< float > > CSlopeColumns
class to store the ICA weight matrix
Definition: slopevector.hh:33
CSlopeClassifier::max_selfcorrelation
SCorrelation max_selfcorrelation() const
CSlopeClassifier::get_LV_idx
int get_LV_idx() const
NS_MIA_BEGIN
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Definition: defines.hh:33
slopevector.hh
CSlopeClassifier
Curve classifier for heart perfusion data.
Definition: slopeclassifier.hh:39
CSlopeClassifier::CSlopeClassifier
CSlopeClassifier(const CSlopeClassifier &other)
CSlopeClassifier::Columns
CSlopeColumns Columns
typedef to define the matrix of curves
Definition: slopeclassifier.hh:42
NS_MIA_END
#define NS_MIA_END
conveniance define to end the mia namespace
Definition: defines.hh:36
CSlopeClassifier::SCorrelation::row1
int row1
index of first row
Definition: slopeclassifier.hh:52
CSlopeClassifier::get_RV_idx
int get_RV_idx() const
correlation
float EXPORT_CORE correlation(const std::vector< float > &a, const std::vector< float > &b)
CSlopeClassifier::get_perfusion_idx
int get_perfusion_idx() const
CSlopeClassifier::index
int index() const
CSlopeClassifier::get_LV_peak
int get_LV_peak() const
CSlopeClassifier::get_RV_peak
int get_RV_peak() const
CSlopeClassifier::SCorrelation
Definition: slopeclassifier.hh:48
CSlopeClassifier::CSlopeClassifier
CSlopeClassifier()
EXPORT_CORE
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
Definition: defines.hh:101
CSlopeClassifier::get_max_slope_length_diff
float get_max_slope_length_diff() const
CSlopeClassifier::SCorrelation::corr
float corr
correlation
Definition: slopeclassifier.hh:50
CSlopeClassifier::get_baseline_idx
int get_baseline_idx() const
CSlopeClassifier::~CSlopeClassifier
~CSlopeClassifier()
CSlopeClassifier::get_periodic_idx
int get_periodic_idx() const
CSlopeClassifier::CSlopeClassifier
CSlopeClassifier(const Columns &m, bool mean_stripped)
CSlopeClassifier::SCorrelation::row2
int row2
index of second row
Definition: slopeclassifier.hh:54