Skip to content

Commit 4277bc5

Browse files
committed
COMP: Add SiddonJacobRayCastInterpolateImageFunction for ITK 5
1 parent 54137b1 commit 4277bc5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

include/itkSiddonJacobsRayCastInterpolateImageFunction.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,18 @@ class SiddonJacobsRayCastInterpolateImageFunction :
182182
return true;
183183
}
184184

185+
#if !defined(ITKV4_COMPATIBILITY)
186+
SizeType GetRadius() const override
187+
{
188+
const InputImageType* input = this->GetInputImage();
189+
if ( !input )
190+
{
191+
itkExceptionMacro( "Input image required!" );
192+
}
193+
return input->GetLargestPossibleRegion().GetSize();
194+
}
195+
#endif
196+
185197
protected:
186198
SiddonJacobsRayCastInterpolateImageFunction();
187199

0 commit comments

Comments
 (0)