I want to save values of the curvature of an object into a nifti (.nii) file. I have a volume object (as stl) which I extracted from a medical image in nifti format using 3D slicer. I computed the curvature values from the object by using vedo/vtk (python) and now I would like to save the results in nifti format, in which the curvature values should be at their correct positions from the original object.
I would be very happy if someone has some ideas to solve that problem. Thank you!