Well done, @grothausmann.roman!
Good idea to exclude
We can switch over the interpolator type to apply the appropriate padding, i.e. 1 for nearest neighbor, 2 for linear, etc. It can be applied with
PadByRadius followed by
Crop with the
LargestPossibleRegion of the input.
As was done with
itk::WarpImageFilter, we should check all corners, instead of just the “lower-left” and “upper-right” corners. Consider this case, for example:
The lack of a regard in
WarpImageFilter for the interpolator could be a bug. We should recommend using
itk::ResampleImageFilter in the
WarpImageFilter documentation and even consider deprecating it if
ResampleImageFilter can do the job of
WarpImageFilter. We should focus our efforts on optimizing and maintaining