27 #include "WSegmentationAlgo.h"
28 #include "core/common/exceptions/WPreconditionNotMet.h"
57 WPrecond( dataset,
"Invalid dataset." );
Class to encapsulate boost::condition_variable_any.
virtual void properties()=0
Initialize your algorithms properties here.
std::shared_ptr< WDataSetScalar > DataSetPtr
A conveniant typedef.
std::shared_ptr< WCondition > getCondition()
Return a condition that indicates changes to the properties.
virtual ~WSegmentationAlgo()
Destructor.
virtual DataSetPtr applyOperation()=0
A virtual function that calls the correct segmentation operation.
DataSetPtr segment(DataSetPtr dataset)
This is called to trigger the actual segmentation in the segmentation module.
std::shared_ptr< WCondition > m_propCondition
The condition indicating changed to the properties.
DataSetPtr m_dataSet
A pointer to the currently processed dataset.
WSegmentationAlgo()
Standard constructor.
void initProperties(WPropGroup group)
Initialize all properties for this algorithm.
void hideProperties(bool hide)
Tell the property group to hide itself.
WPropGroup m_properties
The property group of this segmentation algorithm.