Matrix_to_VolumeTimeSeries: Applies a 2D/3D mask to a matrix to get a 3D/4D volume time...

Description Usage Arguments Value

View source: R/visualize.R

Description

Applies a 2D/3D mask to a matrix to get a 3D/4D volume time series.

Usage

1
Matrix_to_VolumeTimeSeries(mat, mask, sliced_dim = NA, NA_fill = FALSE)

Arguments

mat

A matrix whose rows are observations at different times, and columns are pixels/voxels.

mask

A corresponding binary mask, with 1's representing regions within the area of interest and 0's representing regions to mask out.

sliced_dim

If the mask is 2D, which dimension does it represent? Will default to the 3rd dimension (axial).

NA_fill

Replace in-mask NA values with this. Default NA (no action).

Value

A 4D array representing the volume time series. Time is on the 4th dimension.


muschellij2/clever documentation built on Sept. 26, 2020, 3:54 p.m.