MRIaggr-selectParameter: Extract parameters

Description Usage Arguments Details See Also Examples

Description

Extract parameters from a Carto3D or from a MRIaggr object.

Usage

1
2
3
4
5
## S4 method for signature 'Carto3D'
selectParameter(object)

## S4 method for signature 'MRIaggr'
selectParameter(object, type = "contrast", mask = TRUE)

Arguments

object

an object of class MRIaggr. REQUIRED.

type

the type of parameter to select. character. See the details section.

mask

should the mask be considered as an available contrast parameter ? logical.

Details

ARGUMENTS:
Possible values for type are:

See Also

allocContrast<- to allocate new parameters.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#### 1- Carto3D method ####
## load NIFTI files and convert them to Carto3D
path.Pat1 <- system.file("nifti", package = "MRIaggr")
nifti.Pat1_TTP_t0 <- readMRI(file.path(path.Pat1, "TTP_t0"), format = "nifti")
Carto3D.Pat1_TTP_t0 <- constCarto3D(nifti.Pat1_TTP_t0, identifier = "Pat1", param = "TTP_t0")

## selection
selectParameter(Carto3D.Pat1_TTP_t0)

#### 2- MRIaggr method ####
## load a MRIaggr object
data("MRIaggr.Pat1_red", package="MRIaggr")

## extract all imaging parameters
res <- selectParameter(MRIaggr.Pat1_red)

## extract the names of the parameters in the slot @ls_descStats
res <- selectParameter(MRIaggr.Pat1_red, type = "ls_descStats")

bozenne/MRIaggr documentation built on May 13, 2019, 1:39 a.m.