Evita
0.16
Main Page
Classes
Files
File List
File Members
evFeatureRanker.h
Go to the documentation of this file.
1
/*
2
*
3
* EVITA: Efficient Visualization of Terascale Datasets
4
* Copyright (C) 2000-2016 Team Evita
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Library General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
10
*
11
* This library 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 GNU
14
* Library General Public License for more details.
15
*
16
* You should have received a copy of the GNU Library General Public
17
* License along with this library; if not, write to the
18
* Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
19
* MA 02139, USA.
20
*
21
*/
22
23
24
#ifndef __evFeatureRanker_h
25
#define __evFeatureRanker_h
26
27
28
#include "
evProcessObject.h
"
29
#include "
evScalarField.h
"
30
#include "
evSegmentationMap.h
"
31
#include "
evFeatureRankerPriorityEntry.h
"
32
33
34
class
evFeatureRanker
:
public
evProcessObject
35
{
36
public
:
37
evFeatureRanker
(
void
);
38
virtual
~evFeatureRanker
(
void
);
39
40
virtual
const
evString
GetClassName
(
void
)
const
41
{
42
return
(
evString
(
"evFeatureRanker"
));
43
}
44
45
virtual
int
Rank
(
const
evScalarField
&significance_map,
46
const
evSegmentationMap
&segmentation_map,
47
evSegmentationMap
&ranked_map) = 0;
48
49
protected
:
50
std::vector<evFeatureRankerPriorityEntry>
PriorityQueue
;
51
52
void
InitializeQueue
(
const
unsigned
int
num_rois);
53
void
SortQueue
(
void
);
54
55
private
:
56
57
};
58
59
60
inline
evFeatureRanker::evFeatureRanker
(
void
)
61
{
62
}
63
64
65
inline
evFeatureRanker::~evFeatureRanker
(
void
)
66
{
67
}
68
69
70
inline
void
evFeatureRanker::InitializeQueue
(
const
unsigned
int
num_rois)
71
{
72
this->
PriorityQueue
.clear();
73
74
for
(
unsigned
int
roi = 0; roi < num_rois; roi++)
75
{
76
evFeatureRankerPriorityEntry
entry(roi);
77
this->
PriorityQueue
.push_back(entry);
78
}
79
}
80
81
82
inline
void
evFeatureRanker::SortQueue
(
void
)
83
{
84
std::sort(this->
PriorityQueue
.begin(),
85
this->
PriorityQueue
.end());
86
}
87
88
89
#endif
evFeatureRanker::SortQueue
void SortQueue(void)
Definition:
evFeatureRanker.h:82
evFeatureRanker
Definition:
evFeatureRanker.h:34
evFeatureRanker::PriorityQueue
std::vector< evFeatureRankerPriorityEntry > PriorityQueue
Definition:
evFeatureRanker.h:50
evSegmentationMap.h
evFeatureRanker::~evFeatureRanker
virtual ~evFeatureRanker(void)
Definition:
evFeatureRanker.h:65
evFeatureRanker::Rank
virtual int Rank(const evScalarField &significance_map, const evSegmentationMap &segmentation_map, evSegmentationMap &ranked_map)=0
evFeatureRanker::GetClassName
virtual const evString GetClassName(void) const
Definition:
evFeatureRanker.h:40
evFeatureRanker::InitializeQueue
void InitializeQueue(const unsigned int num_rois)
Definition:
evFeatureRanker.h:70
evFeatureRankerPriorityEntry.h
evSegmentationMap
Definition:
evSegmentationMap.h:35
evProcessObject.h
evFeatureRanker::evFeatureRanker
evFeatureRanker(void)
Definition:
evFeatureRanker.h:60
evScalarField.h
evScalarField
Definition:
evScalarField.h:31
evProcessObject
Definition:
evProcessObject.h:31
evFeatureRankerPriorityEntry
Definition:
evFeatureRankerPriorityEntry.h:31
evString
Definition:
evString.h:30
Generated by
1.8.11