recycle.4dfp: Reload a 4dfp MRI Image.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Reloads a loaded 4dfp MRI image with different options.

Usage

1
R4dfp.Recycle(object,save=TRUE,direct.read=FALSE,direct.write=FALSE)

Arguments

object

Object of class ‘R4dfp’.

save

Save the loaded image before doing anything else if direct.read and direct.write weren't used for the old image.

direct.read

Pass direct.read to R4dfp.Load when reopening.

direct.write

Pass direct.write to R4dfp.Load when reopening.

Details

Closes the specified 4dfp image and reopens it with the specified options. This will invalidate the provided variable; therefore, you must assign the return back to the variable you pass as object.

This function is useful for making a copy of the data for an image loaded with direct.read, and also for creating a new image and subsequently gaining direct access to the image file.

Value

Object of class ‘R4dfp’.

Author(s)

Kevin P. Barry <ta0kira@users.berlios.de> with contributions from Avi Z. Snyder <avi@npg.wustl.edu>

See Also

R4dfp.Load R4dfp.Save R4dfp.Copy R4dfp.Close

Examples

1
2
3
#create an image and reload it with direct writing
myimage <- R4dfp.Blank333("newimage.4dfp.ifh")
myimage <- R4dfp.Recycle(myimage,direct.write=TRUE)

R4dfp documentation built on May 1, 2019, 8:41 p.m.

Related to recycle.4dfp in R4dfp...