Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
mia
template
template/similarity_profile.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
#ifndef mia_internal_similarity_profile_hh
22
#define mia_internal_similarity_profile_hh
23
24
#include <
mia/core/fft1d_r2c.hh
>
25
#include <
mia/core/import_handler.hh
>
26
27
NS_MIA_BEGIN
38
template
<
int
dim>
39
class
EXPORT_HANDLER
TSimilarityProfile
{
40
public
:
42
typedef
dimension_traits<dim>
this_dim_trait
;
43
45
typedef
typename
this_dim_trait::PFullCost
PFullCost
;
46
48
typedef
typename
this_dim_trait::ImageSeries
ImageSeries
;
49
51
typedef
typename
this_dim_trait::PImage
PImage
;
59
TSimilarityProfile
(
PFullCost
cost,
const
ImageSeries
& images,
60
size_t
reference);
61
63
TSimilarityProfile
(
const
TSimilarityProfile<dim>
& org);
64
66
TSimilarityProfile<dim>
& operator = (
const
TSimilarityProfile<dim>
& org);
67
68
70
float
get_peak_frequency()
const
;
71
73
std::vector<size_t> get_periodic_subset()
const
;
74
private
:
75
size_t
m_skip;
76
size_t
m_reference;
77
mutable
float
m_peak_freq;
78
mutable
bool
m_peak_freq_valid;
79
std::vector<CFFT1D_R2C::Real> m_cost_values;
80
};
81
82
NS_MIA_END
83
84
#endif
Generated on Tue Oct 15 2013 13:56:37 by
1.8.4