Learn R Programming

AnalyzeFMRI (version 1.1-25)

fourDto2D: fourDto2D

Description

This function transforms a 4D image array into a 2D image matrix by unrolling space. This is usefull to perform a subsequent ICA.

Usage

fourDto2D(volume.4d, tm)

Value

a matrix of size tm x vm which contains the tm images

Arguments

volume.4d

a 4D array to be transformed

tm

number of time dimensions

See Also

threeDto4D twoDto4D

Examples

Run this code
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