Skip to content

Commit

Permalink
COMP: use STL's unordered map instead of KWSYS's hash map
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Feb 19, 2020
1 parent a06e470 commit f40da34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/itkMorphologicalContourInterpolator.h
Expand Up @@ -22,7 +22,7 @@
#include "itkConnectedComponentImageFilter.h"
#include "itkExtractImageFilter.h"
#include "itkImageToImageFilter.h"
#include "itksys/hash_map.hxx"
#include <unordered_map>

namespace itk
{
Expand Down Expand Up @@ -207,7 +207,7 @@ class MorphologicalContourInterpolator:
}

// each label gets a set of slices in which it is present
using LabeledSlicesType = itksys::hash_map< typename TImage::PixelType, SliceSetType >;
using LabeledSlicesType = std::unordered_map< typename TImage::PixelType, SliceSetType >;
using SliceIndicesType = std::vector< LabeledSlicesType >;

/** Slice indices between which interpolation is done. */
Expand Down Expand Up @@ -364,7 +364,7 @@ class MorphologicalContourInterpolator:
typename SliceType::Pointer& jConn,
const PixelList& jRegionIds );

using BoundingBoxesType = itksys::hash_map< typename TImage::PixelType, typename TImage::RegionType >;
using BoundingBoxesType = std::unordered_map< typename TImage::PixelType, typename TImage::RegionType >;
BoundingBoxesType m_BoundingBoxes; // bounding box for each label

/** Calculates a bounding box of non-zero pixels. */
Expand Down

0 comments on commit f40da34

Please sign in to comment.