Authors belong to:
- University of LYON http://www.universite-lyon.fr/
- - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
+ - Léon Bérard cancer center http://www.centreleonberard.fr
- CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
This software is distributed WITHOUT ANY WARRANTY; without even
- BSD See included LICENSE.txt file
- CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-======================================================================-====*/
+===========================================================================**/
#ifndef _clitkMultiResolutionPDEDeformableRegistration_txx
#define _clitkMultiResolutionPDEDeformableRegistration_txx
#include "clitkMultiResolutionPDEDeformableRegistration.h"
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->SetInitialDeformationField( 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();
- m_RegistrationFilter->SetInitialDeformationField( tempField );
-
+ m_RegistrationFilter->SetInitialDisplacementField( tempField );
}
// setup registration filter and pyramids
}
// 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();
}