slopeclassifier.hh
Go to the documentation of this file.
/* -*- mia-c++ -*-
*
* This file is part of MIA - a toolbox for medical image analysis
* Copyright (c) Leipzig, Madrid 1999-2017 Gert Wollny
*
* MIA is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MIA; if not, see <http://www.gnu.org/licenses/>.
*
*/
#include <vector>
#include <mia/core/slopevector.hh>
#ifndef mia_core_classifier_hh
#define mia_core_classifier_hh
NS_MIA_BEGIN
class EXPORT_CORE CSlopeClassifier
{
public:
typedef CSlopeColumns Columns;
typedef struct {
float corr;
int row1;
int row2;
} SCorrelation;
CSlopeClassifier(const Columns& m, bool mean_stripped);
CSlopeClassifier(const CSlopeClassifier& other);
CSlopeClassifier();
CSlopeClassifier& operator =(const CSlopeClassifier& other);
~CSlopeClassifier();
int get_periodic_idx() const;
int get_RV_idx()const;
int get_LV_idx() const;
int get_baseline_idx() const;
int get_perfusion_idx() const;
int get_RV_peak()const;
int get_LV_peak() const;
float get_max_slope_length_diff() const;
SCorrelation max_selfcorrelation() const;
int index() const;
private:
struct CSlopeClassifierImpl *impl;
};
float EXPORT_CORE correlation(const std::vector<float>& a, const std::vector<float>& b);
NS_MIA_END
#endif
CSlopeClassifier::get_max_slope_length_diff
float get_max_slope_length_diff() const
CSlopeClassifier::get_perfusion_idx
int get_perfusion_idx() const
CSlopeClassifier::max_selfcorrelation
SCorrelation max_selfcorrelation() const
CSlopeClassifier::get_periodic_idx
int get_periodic_idx() const
CSlopeClassifier::Columns
CSlopeColumns Columns
typedef to define the matrix of curves
Definition slopeclassifier.hh:42
CSlopeClassifier::get_RV_idx
int get_RV_idx() const
CSlopeClassifier::get_LV_peak
int get_LV_peak() const
CSlopeClassifier::CSlopeClassifier
CSlopeClassifier()
CSlopeClassifier::CSlopeClassifier
CSlopeClassifier(const Columns &m, bool mean_stripped)
CSlopeClassifier::CSlopeClassifier
CSlopeClassifier(const CSlopeClassifier &other)
CSlopeClassifier::index
int index() const
CSlopeClassifier::get_baseline_idx
int get_baseline_idx() const
CSlopeClassifier::get_RV_peak
int get_RV_peak() const
CSlopeClassifier::get_LV_idx
int get_LV_idx() const
CSlopeClassifier::~CSlopeClassifier
~CSlopeClassifier()
NS_MIA_BEGIN
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Definition defines.hh:33
EXPORT_CORE
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
Definition defines.hh:101
NS_MIA_END
#define NS_MIA_END
conveniance define to end the mia namespace
Definition defines.hh:36
CSlopeColumns
std::vector< std::vector< float > > CSlopeColumns
class to store the ICA weight matrix
Definition slopevector.hh:33
correlation
float EXPORT_CORE correlation(const std::vector< float > &a, const std::vector< float > &b)
slopevector.hh
CSlopeClassifier::SCorrelation
Definition slopeclassifier.hh:48
CSlopeClassifier::SCorrelation::corr
float corr
correlation
Definition slopeclassifier.hh:50
CSlopeClassifier::SCorrelation::row2
int row2
index of second row
Definition slopeclassifier.hh:54
CSlopeClassifier::SCorrelation::row1
int row1
index of first row
Definition slopeclassifier.hh:52