Evita  0.16
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"
32 
33 
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 
61 {
62 }
63 
64 
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  {
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
void SortQueue(void)
Definition: evFeatureRanker.h:82
Definition: evFeatureRanker.h:34
std::vector< evFeatureRankerPriorityEntry > PriorityQueue
Definition: evFeatureRanker.h:50
virtual ~evFeatureRanker(void)
Definition: evFeatureRanker.h:65
virtual int Rank(const evScalarField &significance_map, const evSegmentationMap &segmentation_map, evSegmentationMap &ranked_map)=0
virtual const evString GetClassName(void) const
Definition: evFeatureRanker.h:40
void InitializeQueue(const unsigned int num_rois)
Definition: evFeatureRanker.h:70
Definition: evSegmentationMap.h:35
evFeatureRanker(void)
Definition: evFeatureRanker.h:60
Definition: evScalarField.h:31
Definition: evProcessObject.h:31
Definition: evFeatureRankerPriorityEntry.h:31
Definition: evString.h:30