I understand that vtkWindowedSincPolyDataFilter implements Taubin smoothing on closed surfaces. I am attempting to implement a script which achieves the following:
input: .nii file containing 3D segmentation labelmap [0,1,2] (3-label semantic segmentation)
output: .nii file containing 3D segmentation labelmap [0,1,2] after Taubin smoothing has been applied.
Could anyone suggest a sequence of vtk classes to utilize in order to achieve all the necessary type conversions? I attempted to follow 3DSlicer’s implementation- but it seems they used many Slicer-specific variables, making it difficult to translate to a script as I desire.