typename MovingImageType::IndexType mappedIndex;
for( unsigned int j = 0; j < MovingImageType::ImageDimension; j++ ) {
- mappedIndex[j] = static_cast<long>( vnl_math_rnd( tempIndex[j] ) );
+ mappedIndex[j] = static_cast<long>( std::round( tempIndex[j] ) );
}
const GradientPixelType gradient =
typename MovingImageType::IndexType mappedIndex;
for( unsigned int j = 0; j < MovingImageType::ImageDimension; j++ ) {
- mappedIndex[j] = static_cast<long>( vnl_math_rnd( tempIndex[j] ) );
+ mappedIndex[j] = static_cast<long>( std::round( tempIndex[j] ) );
}
const GradientPixelType gradient =