diff --git a/Modules/Components/Elastix/include/elxElastixFilter.h b/Modules/Components/Elastix/include/elxElastixFilter.h index b89ab35d82630632ad830590ca2e094e3c9f5d76..fde7d839027ddd7b0c3adca69c2d790c46907ed1 100644 --- a/Modules/Components/Elastix/include/elxElastixFilter.h +++ b/Modules/Components/Elastix/include/elxElastixFilter.h @@ -106,6 +106,13 @@ public: itkGetConstMacro( LogToFile, bool ); itkBooleanMacro( LogToFile ); + // TODO: Superclass GetOutput() does not trigger an Update() by itself as it should + TFixedImage* GetOutput() + { + this->Update(); + return static_cast< TFixedImage* >( itk::ProcessObject::GetPrimaryOutput() ); + } + protected: void GenerateData( void ) ITK_OVERRIDE;