27 #include "WSegmentationAlgoLevelSetCanny.h"
31 WSegmentationAlgoLevelSetCanny::WSegmentationAlgoLevelSetCanny()
36 WSegmentationAlgoLevelSetCanny::~WSegmentationAlgoLevelSetCanny()
40 void WSegmentationAlgoLevelSetCanny::properties()
42 m_smoothingIter = m_properties->addProperty(
"Smoothing iterations",
"Number of smoothing passes.", 10, m_propCondition );
43 m_conductance = m_properties->addProperty(
"Conductance",
"Conductance parameter for smoothing.", 1.0, m_propCondition );
44 m_conductance->setMax( 10.0 );
45 m_level = m_properties->addProperty(
"Level",
"The isovalue.", 0.0, m_propCondition );
46 m_variance = m_properties->addProperty(
"Variance",
"variance for the level set.", 1.0, m_propCondition );
47 m_threshold = m_properties->addProperty(
"Threshold",
"Threshold in %.", 0.0, m_propCondition );
50 std::string WSegmentationAlgoLevelSetCanny::getName()
52 return "Levelset segmentation (Canny)";
55 std::string WSegmentationAlgoLevelSetCanny::getDescription()
57 return "Use canny levelsets for segmentation.";
60 bool WSegmentationAlgoLevelSetCanny::propChanged()
62 return m_smoothingIter->changed() || m_conductance->changed() || m_level->changed() || m_variance->changed();
67 return m_dataSet->getValueSet()->applyFunction( *
this );
A base class for segmentation alorithms.
std::shared_ptr< WDataSetScalar > DataSetPtr
A conveniant typedef.