twoDto4D | R Documentation |
This function transform a 2D matrix of size tm x vm containing 3D images in each row into a 4D array image.
twoDto4D(x.2d, dim)
x.2d |
a 2D matrix to be transformed |
dim |
vector of length 4 containing the dimensions of the array. dim[1:3] are the space dimensions. dim[4] is the time dimension |
a 4D array image
threeDto4D
fourDto2D
# contains t = 3 (fake) 3D "images" each of size 2 x 4 x 4
x.2d <- matrix(rnorm(3 * 32), nrow = 3, ncol = 32)
volume.4d <- twoDto4D(x.2d, dim = c(2, 4, 4, 3))
dim(volume.4d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.