X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkMultiResolutionPDEDeformableRegistration.txx;h=c8312e6e173085225a1a53181e01897c83123a6c;hb=afd2671211668e6106886aa59c7bb13a82c48a94;hp=933f169cf3e7fc19a070e7e07327d0e02c8d06d9;hpb=657652a78c2e2717a6f77e027049173442ca29f0;p=clitk.git diff --git a/registration/clitkMultiResolutionPDEDeformableRegistration.txx b/registration/clitkMultiResolutionPDEDeformableRegistration.txx old mode 100755 new mode 100644 index 933f169..c8312e6 --- a/registration/clitkMultiResolutionPDEDeformableRegistration.txx +++ b/registration/clitkMultiResolutionPDEDeformableRegistration.txx @@ -3,7 +3,7 @@ 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 @@ -14,7 +14,7 @@ - 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" @@ -43,7 +43,7 @@ MultiResolutionPDEDeformableRegistration ::GenerateData() { - // Check for NULL images and pointers + // Check for ITK_NULLPTR images and pointers MovingImageConstPointer movingImage = this->GetMovingImage(); FixedImageConstPointer fixedImage = this->GetFixedImage(); @@ -266,7 +266,7 @@ MultiResolutionPDEDeformableRegistrationGetNumberOfLevels() ); - DeformationFieldPointer tempField = NULL; + DeformationFieldPointer tempField = ITK_NULLPTR; DeformationFieldPointer inputPtr = const_cast< DeformationFieldType * >( this->GetInput(0) ); @@ -323,7 +323,7 @@ MultiResolutionPDEDeformableRegistrationSetOutputDirection( fi->GetDirection()); m_FieldExpander->UpdateLargestPossibleRegion(); - m_FieldExpander->SetInput( NULL ); + m_FieldExpander->SetInput( ITK_NULLPTR ); tempField = m_FieldExpander->GetOutput(); tempField->DisconnectPipeline(); } @@ -335,7 +335,7 @@ MultiResolutionPDEDeformableRegistrationSetInitialDeformationField( NULL ); + m_RegistrationFilter->SetInitialDisplacementField( ITK_NULLPTR ); } else { @@ -353,12 +353,11 @@ MultiResolutionPDEDeformableRegistrationSetOutputSpacing( 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 @@ -431,9 +430,9 @@ MultiResolutionPDEDeformableRegistrationSetInput( NULL ); + m_FieldExpander->SetInput( ITK_NULLPTR ); m_FieldExpander->GetOutput()->ReleaseData(); - m_RegistrationFilter->SetInput( NULL ); + m_RegistrationFilter->SetInput( ITK_NULLPTR ); m_RegistrationFilter->GetOutput()->ReleaseData(); }