Skip to content

Commit

Permalink
DOC: Fix Exception message suggestion
Browse files Browse the repository at this point in the history
The suggested member function does not exist.  Use one of the two
available member functions to suggest the correct behavior for
using the reference image information.
  • Loading branch information
hjmjohnson committed Aug 18, 2022
1 parent f47ed6c commit cb4f17f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ ResampleImageFilter<TInputImage, TOutputImage, TInterpolatorPrecisionType, TTran
const ReferenceImageBaseType * const referenceImage = this->GetReferenceImage();
if (this->m_Size[0] == 0 && referenceImage && !m_UseReferenceImage)
{
itkExceptionMacro("Output image size is zero in all dimensions. Consider using SetUseReferenceImageOn()."
"to define the resample output from the ReferenceImage.");
itkExceptionMacro("Output image size is zero in all dimensions. Consider using UseReferenceImageOn()."
"or SetUseReferenceImage(true) to define the resample output from the ReferenceImage.");
}
}

Expand Down

0 comments on commit cb4f17f

Please sign in to comment.