Evita  0.16
evFeatureSegmenter.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 __evFeatureSegmenter_h
25 #define __evFeatureSegmenter_h
26 
27 
28 #include "evProcessObject.h"
29 #include "evScalarField.h"
30 #include "evSegmentationMap.h"
31 
32 
33 #include <list>
34 
35 
37 {
38 public:
40  {
41  this->Initialize();
42  }
43  virtual ~evFeatureSegmenter(void)
44  { }
45 
46  virtual const evString GetClassName(void) const
47  {
48  return(evString("evFeatureSegmenter"));
49  }
50 
51  virtual int Segment(const evScalarField &significance_map,
52  evSegmentationMap &segmentation_map) = 0;
53 
54  double GetThreshold(void) const
55  {
56  return(this->Threshold);
57  }
58  void SetThreshold(const double threshold)
59  {
60  this->Threshold = threshold;
61  }
62 
63 protected:
64 
65  double Threshold;
66 
67 private:
68 
69  void Initialize(void);
70 
71 };
72 
73 
75 {
76  this->Threshold = 0.5;
77 }
78 
79 
80 #endif
double GetThreshold(void) const
Definition: evFeatureSegmenter.h:54
evFeatureSegmenter(void)
Definition: evFeatureSegmenter.h:39
Definition: evFeatureSegmenter.h:36
double Threshold
Definition: evFeatureSegmenter.h:65
virtual ~evFeatureSegmenter(void)
Definition: evFeatureSegmenter.h:43
virtual const evString GetClassName(void) const
Definition: evFeatureSegmenter.h:46
Definition: evSegmentationMap.h:35
void Initialize(void)
Definition: evFeatureSegmenter.h:74
void SetThreshold(const double threshold)
Definition: evFeatureSegmenter.h:58
Definition: evScalarField.h:31
Definition: evProcessObject.h:31
Definition: evString.h:30
virtual int Segment(const evScalarField &significance_map, evSegmentationMap &segmentation_map)=0