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:
typedef typename OutputPointSetType::PointsContainer PointsContainerType;
typedef typename PointsContainerType::Pointer PointsContainerPointer;
typedef typename OutputPointSetType::PointType PointType;
typedef itk::Statistics::MersenneTwisterRandomVariateGenerator GeneratorType;
typedef GeneratorType::Pointer GeneratorPointerType;
typedef GeneratorType::IntegerType SeedType;
itkSetMacro(NumberOfPoints, unsigned int)
itkGetMacro(NumberOfPoints, unsigned int)
......@@ -72,7 +75,7 @@ public:
itkSetMacro(MaxPoint, PointType)
itkGetMacro(MaxPoint, PointType)
void SetSeed(ITK_UINT32 seed)
void SetSeed(SeedType seed)
{
m_Generator->SetSeed(seed);
}
......@@ -89,8 +92,7 @@ private:
unsigned int m_NumberOfPoints;
typedef itk::Statistics::MersenneTwisterRandomVariateGenerator::Pointer GeneratorPointer;
GeneratorPointer m_Generator;
GeneratorPointerType m_Generator;
PointType m_MinPoint;
PointType m_MaxPoint;
......
......@@ -29,7 +29,7 @@ RandomPointSetSource<TOutputPointSet>
::RandomPointSetSource()
{
m_NumberOfPoints = 1;
m_Generator = itk::Statistics::MersenneTwisterRandomVariateGenerator::New();
m_Generator = GeneratorType::New();
m_Generator->Initialize();
m_MinPoint.Fill(0.0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment