dtboundary: Distance to Mask Boundary

View source: R/dtboundary.R

dtboundaryR Documentation

Distance to Mask Boundary

Description

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

Usage

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

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

jdwor/lesiontools documentation built on May 24, 2022, 8:35 p.m.