Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
mia
core
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-2013 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
28
NS_MIA_BEGIN
29
38
class
EXPORT_CORE
CSlopeClassifier
{
39
public
:
41
typedef
CSlopeColumns
Columns
;
42
43
47
typedef
struct
{
49
float
corr
;
51
int
row1
;
53
int
row2
;
54
}
SCorrelation
;
55
61
CSlopeClassifier
(
const
Columns
& m,
bool
mean_stripped);
62
64
CSlopeClassifier
(
const
CSlopeClassifier
& other);
65
66
CSlopeClassifier
();
67
69
CSlopeClassifier
& operator =(
const
CSlopeClassifier
& other);
70
71
~
CSlopeClassifier
();
72
74
int
get_periodic_idx()
const
;
75
77
int
get_RV_idx()
const
;
78
80
int
get_LV_idx()
const
;
81
83
int
get_baseline_idx()
const
;
84
86
int
get_perfusion_idx()
const
;
87
89
int
get_RV_peak()
const
;
90
92
int
get_LV_peak()
const
;
93
95
float
get_max_slope_length_diff()
const
;
96
98
SCorrelation
max_selfcorrelation()
const
;
99
101
int
index()
const
;
102
103
private
:
104
struct
CSlopeClassifierImpl *impl;
105
};
106
108
float
EXPORT_CORE
correlation
(
const
std::vector<float>& a,
const
std::vector<float>& b);
109
110
NS_MIA_END
111
112
#endif
Generated on Tue Oct 15 2013 13:56:37 by
1.8.4