27 #include "WSegmentationAlgoThreshold.h"
53 return "Threshold segmentation";
58 return "Use thresholding for segmentation.";
68 return m_dataSet->getValueSet()->applyFunction( *
this );
WPropDouble m_upp_threshold
The upper threshold in %.
WSegmentationAlgoThreshold()
Standard constructor.
virtual bool propChanged()
Checks if any properties were changed.
virtual void properties()
Initializes the algorithm's properties.
virtual std::string getDescription()
Return a description of this algorithm.
virtual std::string getName()
Return the name of this algorithm.
WPropBool m_binarize
Whether the values inside range of thresholds should be keept, or resulting images should contain onl...
virtual ~WSegmentationAlgoThreshold()
Destructor.
WPropDouble m_low_threshold
The lower threshold in %.
virtual DataSetPtr applyOperation()
A virtual function that calls the correct segmentation operation.
A base class for segmentation alorithms.
std::shared_ptr< WDataSetScalar > DataSetPtr
A conveniant typedef.
std::shared_ptr< WCondition > m_propCondition
The condition indicating changed to the properties.
DataSetPtr m_dataSet
A pointer to the currently processed dataset.
WPropGroup m_properties
The property group of this segmentation algorithm.