m_MovingImagePyramid = MovingImagePyramidType::New();
m_FixedImagePyramid = FixedImagePyramidType::New();
m_FieldExpander = FieldExpanderType::New();
- m_InitialDeformationField = NULL;
+ m_InitialDeformationField = ITK_NULLPTR;
m_NumberOfLevels = 3;
m_NumberOfIterations.resize( m_NumberOfLevels );
MultiResolutionPDEDeformableRegistration<TFixedImage,TMovingImage,TDeformationField,TRealType>
::GenerateData()
{
- // Check for NULL images and pointers
+ // Check for ITK_NULLPTR images and pointers
MovingImageConstPointer movingImage = this->GetMovingImage();
FixedImageConstPointer fixedImage = this->GetFixedImage();
unsigned int fixedLevel = vnl_math_min( (int) m_CurrentLevel,
(int) m_FixedImagePyramid->GetNumberOfLevels() );
- DeformationFieldPointer tempField = NULL;
+ DeformationFieldPointer tempField = ITK_NULLPTR;
DeformationFieldPointer inputPtr =
const_cast< DeformationFieldType * >( this->GetInput(0) );
m_FieldExpander->SetOutputDirection( fi->GetDirection());
m_FieldExpander->UpdateLargestPossibleRegion();
- m_FieldExpander->SetInput( NULL );
+ m_FieldExpander->SetInput( ITK_NULLPTR );
tempField = m_FieldExpander->GetOutput();
tempField->DisconnectPipeline();
}
if( tempField.IsNull() )
{
- m_RegistrationFilter->SetInitialDisplacementField( NULL );
+ m_RegistrationFilter->SetInitialDisplacementField( ITK_NULLPTR );
}
else
{
m_FieldExpander->SetOutputSpacing( fi->GetSpacing());
m_FieldExpander->UpdateLargestPossibleRegion();
- m_FieldExpander->SetInput( NULL );
+ m_FieldExpander->SetInput( ITK_NULLPTR );
tempField = m_FieldExpander->GetOutput();
tempField->DisconnectPipeline();
}
// Release memory
- m_FieldExpander->SetInput( NULL );
+ m_FieldExpander->SetInput( ITK_NULLPTR );
m_FieldExpander->GetOutput()->ReleaseData();
- m_RegistrationFilter->SetInput( NULL );
+ m_RegistrationFilter->SetInput( ITK_NULLPTR );
m_RegistrationFilter->GetOutput()->ReleaseData();
}