spatioTemporalProjectionImage: Projects a 4D image to a 3D and 1D image (ND to 1 and D minus...

Description Usage Arguments Value Author(s) Examples

View source: R/spatioTemporalProjectionImage.R

Description

Applies a summary function to a spatiotemporal matrix to get lower dimensional representations.

Usage

1
2
spatioTemporalProjectionImage(spacetimematrixIn, summaryFUN = mean,
  nDminus1ref = NA)

Arguments

summaryFUN

how to summarize the spatial part across time

nDminus1ref

reference spatial image

spacetimevec

input space time matrix or antsImage of length equal to nvoxels in a mask times the number of time points

Value

list(spacefunction=myestimatedbrainregionsval, timefunction=myestimatedhrf, spaceimage=spaceimage )

Author(s)

Avants BB

Examples

1
2
3
4
5
6
7
## Not run: 
img<-antsImageRead("TEST0View1vec000.nii.gz",4)
ff<-spatioTemporalProjectionImage( img, sum, mask )
antsImageWrite(ff$spaceimage,'temp.nii.gz')
plot(ff$timefunction,type='l')

## End(Not run)

stnava/RKRNS documentation built on Aug. 26, 2017, 9:55 a.m.