mesh_to_levelset¶
-
nighres.surface.
mesh_to_levelset
(surface_mesh, reference_image, save_data=False, overwrite=False, output_dir=None, file_name=None)[source]¶ Mesh to levelset
Creates a signed distance function from a triangulated mesh using pseudonormals.
Parameters: - surface_mesh (mesh) – Mesh model of the surface
- reference_image (niimg) – Image of the dimensions and resolutions corresponding to the mesh
- save_data (bool, optional) – Save output data to file (default is False)
- overwrite (bool, optional) – Overwrite existing results (default is False)
- output_dir (str, optional) – Path to desired output directory, will be created if it doesn’t exist
- file_name (str, optional) – Desired base name for output files with file extension (suffixes will be added)
Returns: Dictionary collecting outputs under the following keys (suffix of output files in brackets)
- result (niimg): Levelset function representing the mesh (_m2l-lvl)
Return type: Notes
Ported from original Java module by Christine Tardif and Pierre-Louis Bazin.
References