Skip to content
Snippets Groups Projects
Commit 4f2fc34d authored by Jordi Inglada's avatar Jordi Inglada
Browse files

BUG: Smoothed deformation field not needed and caused segfault

parent 58686658
No related branches found
No related tags found
No related merge requests found
......@@ -74,15 +74,16 @@ NCCRegistrationFilter<TFixedImage,TMovingImage,TDeformationField>
itkExceptionMacro( <<
"Could not cast difference function to NCCRegistrationFunction" );
}
/*
* Smooth the deformation field
*/
if ( this->GetSmoothDeformationField() )
{
this->SmoothDeformationField();
}
*/
}
......@@ -234,11 +235,11 @@ NCCRegistrationFilter<TFixedImage,TMovingImage,TDeformationField>
{
// If we smooth the update buffer before applying it, then the are
// approximating a viscuous problem as opposed to an elastic problem
if ( this->GetSmoothUpdateField() )
/* if ( this->GetSmoothUpdateField() )
{
this->SmoothUpdateField();
}
*/
this->Superclass::ApplyUpdate(dt);
NCCRegistrationFunctionType *drfp =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment