ENH,RF: Add new CorrectConstant extrapolation type, which initialises coefficient field with correct boundary condition

This MR adds support to the Splinterpolator class for a new extrapolation type called CorrectConstant, which is equivalent to the existing Constant extrapolation type, but with a different boundary condition method for initialising the spline coefficient field. The existing Constant method sometimes results in artifacts in extrapolated areas - the new CorrectConstant method allows these artifacts to be avoided.

Input image: input

Constant extrapolation (focus on the coronal view): constant

CorrectConstant extrapolation: correct_constant

Edited by Paul McCarthy

Merge request reports

Loading