dynamic_cast< TVertexFunction* >(
this->GetVertexFunction( )
);
- if( vertexFunc == NULL )
- itkExceptionMacro( << "VertexFunction not well defined." );
- vertexFunc->SetImage( this->GetInput( ) );
+ if( vertexFunc != NULL )
+ vertexFunc->SetImage( this->GetInput( ) );
}
// -------------------------------------------------------------------------