Learn R Programming

R4dfp (version 0.2-4)

R4dfp.Blank: Create a Blank 4dfp MRI Image.

Description

Returns a loaded 4dfp MRI image, either loaded or memory-mapped.

Usage

R4dfp.Blank(file="",dims=c(1,1,1,1),scale=c(1,1,1),mmppix=c(1,-1,-1), center=c(0,0,0)) R4dfp.Blank333(file="",t=1) R4dfp.Blank111(file="",t=1)

Arguments

file
File-name.
dims
Lengths of each of the 4 dimensions.
scale
Voxel-to-coordinate scale.
mmppix
No one really knows.
center
Centerpoint of the image.
t
Length of ‘time’ dimension.

Value

Object of class ‘R4dfp’.

See Also

R4dfp.Save R4dfp.Copy R4dfp.Close R4dfp.Recycle

Examples

Run this code
#create a new image and load it for direct writing
myimage <- R4dfp.Blank333("myimage.4dfp.ifh")
myimage <- R4dfp.Recycle(myimage,direct.write=TRUE)

Run the code above in your browser using DataLab