imslice: Slice out a 3D subarray (or 2d matrix) from a 3D image array

View source: R/im3d.R

imsliceR Documentation

Slice out a 3D subarray (or 2d matrix) from a 3D image array

Description

Slice out a 3D subarray (or 2d matrix) from a 3D image array

Usage

imslice(x, slice, slicedim = "z", drop = TRUE)

Arguments

x

An im3d objet

slice

Indices defining the slices to keep

slicedim

Character vector or integer defining axis from which slices will be removed.

drop

Whether singleton dimensions will be dropped (default: TRUE) conveting 3D array to 2d matrix.

Details

Note the sample locations stored in the x,y,z attributes will be updated appropriately. FIXME: Should we also update bounding box?

See Also

Other im3d: as.im3d(), boundingbox(), im3d-coords, im3d-io, im3d(), imexpand.grid(), is.im3d(), mask(), origin(), projection(), threshold(), unmask(), voxdims()


nat documentation built on May 29, 2024, 10:36 a.m.