![]() |
OpenWalnut
1.5.0dev
|
A base class for segmentation alorithms. More...
#include <WSegmentationAlgo.h>
Inheritance diagram for WSegmentationAlgo:
Collaboration diagram for WSegmentationAlgo:Public Types | |
| typedef std::shared_ptr< WDataSetScalar > | DataSetPtr |
| A conveniant typedef. More... | |
Public Member Functions | |
| WSegmentationAlgo () | |
| Standard constructor. More... | |
| virtual | ~WSegmentationAlgo () |
| Destructor. More... | |
| std::shared_ptr< WCondition > | getCondition () |
| Return a condition that indicates changes to the properties. More... | |
| virtual std::string | getName ()=0 |
| Return the name of this algorithm. More... | |
| virtual std::string | getDescription ()=0 |
| Return a description of this algorithm. More... | |
| void | initProperties (WPropGroup group) |
| Initialize all properties for this algorithm. More... | |
| DataSetPtr | segment (DataSetPtr dataset) |
| This is called to trigger the actual segmentation in the segmentation module. More... | |
| virtual bool | propChanged ()=0 |
| Checks if any properties were changed. More... | |
| void | hideProperties (bool hide) |
| Tell the property group to hide itself. More... | |
Protected Member Functions | |
| virtual DataSetPtr | applyOperation ()=0 |
| A virtual function that calls the correct segmentation operation. More... | |
| virtual void | properties ()=0 |
| Initialize your algorithms properties here. More... | |
Protected Attributes | |
| WPropGroup | m_properties |
| The property group of this segmentation algorithm. More... | |
| std::shared_ptr< WCondition > | m_propCondition |
| The condition indicating changed to the properties. More... | |
| DataSetPtr | m_dataSet |
| A pointer to the currently processed dataset. More... | |
A base class for segmentation alorithms.
Definition at line 42 of file WSegmentationAlgo.h.
| typedef std::shared_ptr< WDataSetScalar > WSegmentationAlgo::DataSetPtr |
A conveniant typedef.
Definition at line 46 of file WSegmentationAlgo.h.
| WSegmentationAlgo::WSegmentationAlgo | ( | ) |
Standard constructor.
Definition at line 30 of file WSegmentationAlgo.cpp.
|
virtual |
Destructor.
Definition at line 37 of file WSegmentationAlgo.cpp.
|
protectedpure virtual |
A virtual function that calls the correct segmentation operation.
Implemented in WSegmentationAlgoThreshold.
Referenced by segment().
Here is the caller graph for this function:| std::shared_ptr< WCondition > WSegmentationAlgo::getCondition | ( | ) |
Return a condition that indicates changes to the properties.
Definition at line 41 of file WSegmentationAlgo.cpp.
References m_propCondition.
|
pure virtual |
Return a description of this algorithm.
Implemented in WSegmentationAlgoThreshold.
|
pure virtual |
| void WSegmentationAlgo::hideProperties | ( | bool | hide | ) |
Tell the property group to hide itself.
| hide | If true, the group will be hidden. |
Definition at line 64 of file WSegmentationAlgo.cpp.
References m_properties.
| void WSegmentationAlgo::initProperties | ( | WPropGroup | group | ) |
Initialize all properties for this algorithm.
This will call the respective properties() function.
| group | The property group all new properties should be added to. |
Definition at line 46 of file WSegmentationAlgo.cpp.
References m_properties, and properties().
Here is the call graph for this function:
|
pure virtual |
Checks if any properties were changed.
Implemented in WSegmentationAlgoThreshold.
|
protectedpure virtual |
Initialize your algorithms properties here.
Implemented in WSegmentationAlgoThreshold.
Referenced by initProperties().
Here is the caller graph for this function:| WSegmentationAlgo::DataSetPtr WSegmentationAlgo::segment | ( | DataSetPtr | dataset | ) |
This is called to trigger the actual segmentation in the segmentation module.
| dataset | The input dataset for segmentation. |
Definition at line 55 of file WSegmentationAlgo.cpp.
References applyOperation(), and m_dataSet.
Here is the call graph for this function:
|
protected |
A pointer to the currently processed dataset.
Definition at line 125 of file WSegmentationAlgo.h.
Referenced by WSegmentationAlgoThreshold::applyOperation(), WSegmentationAlgoThreshold::operator()(), and segment().
|
protected |
The condition indicating changed to the properties.
Definition at line 122 of file WSegmentationAlgo.h.
Referenced by getCondition(), and WSegmentationAlgoThreshold::properties().
|
protected |
The property group of this segmentation algorithm.
Definition at line 119 of file WSegmentationAlgo.h.
Referenced by hideProperties(), initProperties(), and WSegmentationAlgoThreshold::properties().