Skip to content

Commit 4e9f605

Browse files
authored
Merge pull request #58 from phcerdan/fix_resamplebenchmark
BUG: Fix compile errors in ResampleBenchmark
2 parents 4976fd5 + abdea8f commit 4e9f605

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/Filtering/ResampleBenchmark.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ CreateInputImage( const std::vector< int >& imageSizes )
7979
image->SetRegions( typename ImageType::RegionType( imageSize ) );
8080
image->Allocate();
8181

82-
ImageType::SpacingType spacing;
83-
ImageType::PointType origin;
82+
typename ImageType::SpacingType spacing;
83+
typename ImageType::PointType origin;
8484

8585
if ( ImageType::ImageDimension < 3 )
8686
{
@@ -103,7 +103,7 @@ CreateInputImage( const std::vector< int >& imageSizes )
103103
image->SetOrigin( origin );
104104

105105
// Fill the image with some test gradient pattern
106-
auto value = itk::NumericTraits< ImageType::PixelType >::Zero;
106+
auto value = itk::NumericTraits< typename ImageType::PixelType >::ZeroValue();
107107
itk::ImageRegionIterator< ImageType > iter( image, image->GetLargestPossibleRegion() );
108108
while ( !iter.IsAtEnd() )
109109
{
@@ -477,8 +477,8 @@ DefineBSplineParameters( const std::size_t transformIndex, typename BSplineTrans
477477
parameters.SetSize( numberOfParameters );
478478

479479
// Create a uniform distribution with seed based on the default + transform index
480-
std::default_random_engine randomEngine( 1234 + transformIndex );
481-
const std::uniform_real_distribution< double > randomNumberDistribution( -1.0, 1.0 );
480+
std::default_random_engine randomEngine( 1234 + transformIndex );
481+
std::uniform_real_distribution< double > randomNumberDistribution( -1.0, 1.0 );
482482

483483
// Set the BSpline parameters from the uniform distribution
484484
for ( std::size_t n = 0; n < numberOfNodes * Dimension; ++n )

0 commit comments

Comments
 (0)