Construct a temporal profile of voxels within an ROI

t_profile(x, mask = NULL, baseline = NULL, freq = TRUE)

Arguments

x

A hyperstack with imaging data

mask

An ROI mask e.g. from make_roi_from_mean

baseline

Optionally specifies which samples are the baseline (see details).

freq

Logical specifying whether to use frequency information in attributes of x (default TRUE) or numeric value specifying frequency directly. See details.

Value

A matrix with the third and fourth dimensions of x, optionally

Details

When the baseline frames are specified the result will be normalised to have a mean value of 1.0 in this period.

When freq=TRUE or is passed a numeric value, the return type will be a time series ts object. This can then be used in plots or subjected to filtering etc.

See also

make_roi_from_mean, ts, plot.ts