18 #ifndef itkMorphologyHistogram_h
19 #define itkMorphologyHistogram_h
30 template <
typename TInputPixel,
typename TCompare>
34 using MapType =
typename std::map<TInputPixel, IdentifierType, TCompare>;
65 itkAssertInDebugAndIgnoreInReleaseMacro(!
m_Map.empty());
67 auto mapIt =
m_Map.begin();
68 while (mapIt !=
m_Map.end())
70 if (mapIt->second == 0)
76 TInputPixel toErase = mapIt->first;
92 itkAssertInDebugAndIgnoreInReleaseMacro(!
m_Map.empty());
93 return m_Map.begin()->first;
118 template <
typename TInputPixel,
typename TCompare>
211 template <
typename TCompare>
215 template <
typename TCompare>
216 class MorphologyHistogram<signed char, TCompare> :
public VectorMorphologyHistogram<signed char, TCompare>
219 template <
typename TCompare>
220 class MorphologyHistogram<bool, TCompare> :
public VectorMorphologyHistogram<bool, TCompare>