18 #ifndef __itkMorphologyHistogram_h
19 #define __itkMorphologyHistogram_h
30 template<
class TInputPixel,
class TCompare >
35 typedef typename std::map< TInputPixel, IdentifierType, TCompare >
MapType;
61 itkAssertInDebugAndIgnoreInReleaseMacro(!
m_Map.empty());
63 typename MapType::iterator mapIt =
m_Map.begin();
64 while ( mapIt !=
m_Map.end() )
66 if ( mapIt->second == 0 )
72 TInputPixel toErase = mapIt->first;
88 itkAssertInDebugAndIgnoreInReleaseMacro(!
m_Map.empty());
89 return m_Map.begin()->first;
92 inline TInputPixel
GetValue(
const TInputPixel &)
112 template<
class TInputPixel,
class TCompare >
198 template<
class TCompare >
204 template<
class TCompare >
205 class MorphologyHistogram<signed char, TCompare>:
206 public VectorMorphologyHistogram<signed char, TCompare>
210 template<
class TCompare >
211 class MorphologyHistogram<bool, TCompare>:
212 public VectorMorphologyHistogram<bool, TCompare>