eroded_wm_segmentation ======================================================== .. py:function:: petpal.preproc.segmentation_tools.eroded_wm_segmentation(input_segmentation_path: str, out_segmentation_path: str | None, eroded_wm_region_mapping: int = 1) -> ants.ANTsImage Generates eroded white matter region on a segmentation image and merges it into the image, saving result as a new segmentation image. Requires FreeSurfer segmentation with original label mappings. :param input_segmentation_path: Path to input freesurfer segmentation, such as aparc+aseg or wmparc. :type input_segmentation_path: str :param out_segmentation_path: Path to output segmentation image with replaced values in eroded whited matter region. :type out_segmentation_path: str :param eroded_wm_region_mapping: Segmentation mapping for the eroded white matter region in the output image. Default "1". :type eroded_wm_region_mapping: int :returns: *seg_img (ants.ANTsImage)* -- Input segmentation image with values in eroded white matter replaced with `eroded_wm_region_mapping`. .. seealso:: :meth:`~petpal.preproc.segmentation_tools.vat_wm_ref_region` - function that generates the eroded white matter region.