19 #ifndef itkRankHistogram_h
20 #define itkRankHistogram_h
51 template <
typename TInputPixel>
145 for (
typename MapType::iterator it =
m_Map.begin(); it !=
m_Map.end(); it++)
162 bool eraseFlag =
false;
167 typename MapType::iterator eraseIt;
169 while (searchIt !=
m_Map.end())
175 ThisBin = searchIt->second;
179 m_Map.erase(eraseIt);
192 if (searchIt ==
m_Map.end())
202 typename MapType::iterator eraseIt;
204 while (searchIt !=
m_Map.begin())
206 ThisBin = searchIt->second;
207 unsigned int tbelow = total - ThisBin;
214 m_Map.erase(eraseIt);
259 using MapType =
typename std::map<TInputPixel, SizeValueType, Compare>;
274 template <
typename TInputPixel>
346 itkAssertInDebugAndIgnoreInReleaseMacro(q >= 0);
347 itkAssertInDebugAndIgnoreInReleaseMacro(q < (
int)
m_Vec.size());
348 itkAssertInDebugAndIgnoreInReleaseMacro(
m_Entries >= 1);
349 itkAssertInDebugAndIgnoreInReleaseMacro(
m_Vec[q] > 0);
384 using VecType =
typename std::vector<SizeValueType>;
405 class RankHistogram<signed char> :
public VectorRankHistogram<signed char>
409 class RankHistogram<bool> :
public VectorRankHistogram<bool>