dtboundary: Distance to Mask Boundary

Description Usage Arguments Value Examples

Description

This function finds the distance of each voxel to the nearest boundary in a given mask.

Usage

1
dtboundary(mask)

Arguments

mask

a 3D array or image of class nifti, containing a binary mask where 1 represents structure.

Value

A new image in which voxels have been assigned their distance to the nearest boundary.

Examples

1
2
3
4
5
## Not run: 
library(neurobase)
lesion.mask <- readnii('path/to/mask')
dtb <- dtboundary(mask = lesion.mask) 
## End(Not run)

neuroconductor-devel/lesiontools documentation built on May 15, 2019, 3:16 p.m.