fourDto2D: fourDto2D

View source: R/niftiFMRI.R

fourDto2DR Documentation

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)

Arguments

volume.4d

a 4D array to be transformed

tm

number of time dimensions

Value

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

See Also

threeDto4D twoDto4D

Examples

volume.4d <- array(rnorm(96), dim = c(2, 4, 4, 3)) # a fake 4D image array
x.2d <- fourDto2D(volume.4d, tm = 3)

AnalyzeFMRI documentation built on Aug. 8, 2025, 7:16 p.m.