Description Usage Arguments Value
Applies a 2D/3D mask to a matrix to get a 3D/4D volume time series.
1 | Matrix_to_VolumeTimeSeries(mat, mask, sliced_dim = NA, NA_fill = FALSE)
|
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). |
A 4D array representing the volume time series. Time is on the 4th dimension.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.