specifyregion: Generate activation image

Description Usage Arguments Value Author(s) See Also Examples

View source: R/specifyregion.R

Description

Generates an image with activated regions for specified dimensions. The regions are defined by their center and radius or can be entered manually.

Usage

1
2
3
  specifyregion(dim, coord, radius = NULL, 
	form = c("cube", "sphere", "manual"), 
	fading = 0)

Arguments

dim

Dimensions of the image space.

coord

Coordinates of the activated region, if form=="cube" or form=="sphere", the coordinates represent the center of the region, if form=="manual", the coordinates should be in matrix form, where the rows represent the voxels and the columns the x-y-z coordinates.

radius

If form=="cube" or form=="sphere", the distance in voxels from the center of the region to the edge.

form

The form of the activated region. Default is "cube".

fading

Decay rate between 0 and 1. 0 means no fading, while 1 results in the fastest decay.

Value

An array representing the activation image with specified regions.

Author(s)

M. Welvaert

See Also

specifyregion,gammaHRF,canonicalHRF,balloon

Examples

1
2
3
4
d <- c(10,10,10)
coord <- c(3,3,3)
radius <- 1
out <- specifyregion(d, coord, radius, form="sphere")

NeuroStat/neuRosim documentation built on Sept. 14, 2019, 10:37 a.m.