spm_pve2categorical: Convert SPM style segmentation files to a single categorical...

View source: R/image_reg.R

spm_pve2categoricalR Documentation

Convert SPM style segmentation files to a single categorical image where the numerical values map as: 0) Other, 1) CSF, 2) GM and 3) WM.

Description

Convert SPM style segmentation files to a single categorical image where the numerical values map as: 0) Other, 1) CSF, 2) GM and 3) WM.

Usage

spm_pve2categorical(fname)

Arguments

fname

any of the segmentation files (eg c1_MY_T1.nii).

Value

nifti object.


spant documentation built on Oct. 23, 2023, 5:06 p.m.