levelset_to_probability¶
-
nighres.surface.
levelset_to_probability
(levelset_image, distance_mm=5, save_data=False, overwrite=False, output_dir=None, file_name=None)[source]¶ Levelset to probability
Creates a probability map from the distance to a levelset surface representation.
Parameters: - levelset_image (niimg) – Levelset image to be turned into probabilities
- distance_mm (float, optional) – Distance used for the range of probabilities in ]0,1[
- 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): Probability map (output file suffix _l2p-proba)
Return type: Notes
Ported from original Java module by Pierre-Louis Bazin