Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions include/itkElastixRegistrationMethod.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ class ITK_TEMPLATE_EXPORT ElastixRegistrationMethod : public itk::ImageSource<TF
GetOutput(unsigned int idx);
const DataObject *
GetOutput(unsigned int idx) const;
ResultImageType *
GetOutput();
ResultImageType *
GetOutput() const;

/* Standard filter indexed input / output methods */
void
Expand Down
16 changes: 16 additions & 0 deletions include/itkElastixRegistrationMethod.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,22 @@ ElastixRegistrationMethod<TFixedImage, TMovingImage>::GetTransformParameterObjec
}


template <typename TFixedImage, typename TMovingImage>
typename ElastixRegistrationMethod<TFixedImage, TMovingImage>::ResultImageType *
ElastixRegistrationMethod<TFixedImage, TMovingImage>::GetOutput()
{
return static_cast<ResultImageType *>(this->ProcessObject::GetOutput(0));
}


template <typename TFixedImage, typename TMovingImage>
const typename ElastixRegistrationMethod<TFixedImage, TMovingImage>::ResultImageType *
ElastixRegistrationMethod<TFixedImage, TMovingImage>::GetOutput() const
{
return static_cast<const ResultImageType *>(this->ProcessObject::GetOutput(0));
}


template <typename TFixedImage, typename TMovingImage>
DataObject *
ElastixRegistrationMethod<TFixedImage, TMovingImage>::GetOutput(unsigned int idx)
Expand Down