Field interpolation from set of 2D slices (3D volume)

Hi;

I have a stack of 2D images (3d image Data). each 2d image represent a distance field computed from contour (contour of slicerRT) , I want to interpolate pixel by pixel the 2D images using a cubic spline interpolation? but I have no idea how can I do that?

any suggestion will be appreaciated

Thank’s in advance

You can use “Resample Scalar/Vector/DWI Volume” module for this. Set interpolation type to bs.

thank you very much for answer. ResampleScalarVolume.cxx uses ITK filters, is it possible to use vtkImageBSplineInterpolator instead?

You need to take care of image axis directions in some way (VTK8 only supports non-rotated axes) and proper prefiltering but it should be usable, too.

1 Like