powered by
This function transforms a 4D image array into a 2D image matrix by unrolling space. This is usefull to perform a subsequent ICA.
fourDto2D(volume.4d, tm)
a matrix of size tm x vm which contains the tm images
a 4D array to be transformed
number of time dimensions
threeDto4D twoDto4D
threeDto4D
twoDto4D
volume.4d <- array(rnorm(96), dim = c(2, 4, 4, 3)) # a fake 4D image array x.2d <- fourDto2D(volume.4d, tm = 3)
Run the code above in your browser using DataLab