Skip to content
Snippets Groups Projects
Commit d5d85c9b authored by Julien Malik's avatar Julien Malik
Browse files

COMP: avoid use of deprecated ITK_UINT32 type

parent 35a5627f
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,9 @@ public: ...@@ -63,6 +63,9 @@ public:
typedef typename OutputPointSetType::PointsContainer PointsContainerType; typedef typename OutputPointSetType::PointsContainer PointsContainerType;
typedef typename PointsContainerType::Pointer PointsContainerPointer; typedef typename PointsContainerType::Pointer PointsContainerPointer;
typedef typename OutputPointSetType::PointType PointType; typedef typename OutputPointSetType::PointType PointType;
typedef itk::Statistics::MersenneTwisterRandomVariateGenerator GeneratorType;
typedef GeneratorType::Pointer GeneratorPointerType;
typedef GeneratorType::IntegerType SeedType;
itkSetMacro(NumberOfPoints, unsigned int) itkSetMacro(NumberOfPoints, unsigned int)
itkGetMacro(NumberOfPoints, unsigned int) itkGetMacro(NumberOfPoints, unsigned int)
...@@ -72,7 +75,7 @@ public: ...@@ -72,7 +75,7 @@ public:
itkSetMacro(MaxPoint, PointType) itkSetMacro(MaxPoint, PointType)
itkGetMacro(MaxPoint, PointType) itkGetMacro(MaxPoint, PointType)
void SetSeed(ITK_UINT32 seed) void SetSeed(SeedType seed)
{ {
m_Generator->SetSeed(seed); m_Generator->SetSeed(seed);
} }
...@@ -89,8 +92,7 @@ private: ...@@ -89,8 +92,7 @@ private:
unsigned int m_NumberOfPoints; unsigned int m_NumberOfPoints;
typedef itk::Statistics::MersenneTwisterRandomVariateGenerator::Pointer GeneratorPointer; GeneratorPointerType m_Generator;
GeneratorPointer m_Generator;
PointType m_MinPoint; PointType m_MinPoint;
PointType m_MaxPoint; PointType m_MaxPoint;
......
...@@ -29,7 +29,7 @@ RandomPointSetSource<TOutputPointSet> ...@@ -29,7 +29,7 @@ RandomPointSetSource<TOutputPointSet>
::RandomPointSetSource() ::RandomPointSetSource()
{ {
m_NumberOfPoints = 1; m_NumberOfPoints = 1;
m_Generator = itk::Statistics::MersenneTwisterRandomVariateGenerator::New(); m_Generator = GeneratorType::New();
m_Generator->Initialize(); m_Generator->Initialize();
m_MinPoint.Fill(0.0); m_MinPoint.Fill(0.0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment