18 #ifndef __itkWatershedSegmentTable_h
19 #define __itkWatershedSegmentTable_h
46 template<
class TScalarType >
57 itkTypeMacro(WatershedSegmentTable,
DataObject);
72 if ( this->height < o.
height )
97 typedef typename HashMapType::iterator
Iterator;
109 void PruneEdgeLists(
ScalarType maximum_saliency);
115 Iterator result = m_HashMap.find(a);
117 if ( result == m_HashMap.end() ) {
return 0; }
118 else {
return &( ( *result ).second ); }
127 if ( result == m_HashMap.end() ) {
return 0; }
128 else {
return &( ( *result ).second ); }
135 if ( m_HashMap.find(a) == m_HashMap.end() ) {
return false; }
136 else {
return true; }
142 { m_HashMap.erase(a); }
146 { m_HashMap.clear(); }
151 {
return m_HashMap.empty(); }
155 void SortEdgeLists();
158 typename HashMapType::size_type
Size()
const
159 {
return m_HashMap.size(); }
181 unsigned int GetSegmentMemorySize()
const
198 {
return m_MaximumDepth; }
205 m_HashMap = o.m_HashMap;
206 m_MaximumDepth = o.m_MaximumDepth;
222 #ifndef ITK_MANUAL_INSTANTIATION
223 #include "itkWatershedSegmentTable.hxx"