vol.boundary.box: Compute 3D bounding box of a volume.

Description Usage Arguments Value See Also

View source: R/vis_volume.R


Compute the axis-aligned foreground bounding box of a 3D volume, i.e. the inner foreground area that must be retained if you want to remove all background from the corners of the volume. The foreground is determined by thresholding, such that all values greater than 0 are considered foreground. See vol.boundary.mask for details.


vol.boundary.box(volume, threshold = 0L, apply = FALSE)



a 3D image volume


numerical, the threshold intensity used to separate background and foreground. All voxels with intensity values greater than this value will be considered 'foreground' voxels.


logical, whether to directly apply the bounding box and return the resulting volume instead.


named list with 2 entries: 'from' is an integer vector of length 3, defining the minimal (x,y,z) foreground indices. 'to' is an integer vector of length 3, defining the maximal (x,y,z) foreground indices.

See Also

Other volume utility: vol.imagestack(), vol.merge(), vol.overlay.colors.from.activation(), vol.planes(), vol.slice()

fsbrain documentation built on Sept. 16, 2021, 5:07 p.m.