Learn R Programming

MRIaggr (version 1.1.5)

selectNormalization: Extract the normalization values

Description

Extract the normalization values from a MRIaggr object.

Usage

"selectNormalization"(object, type = NULL, mu = TRUE, sigma = TRUE, hemisphere = "both", num = NULL, param = NULL)

Arguments

object
an object of class MRIaggr. REQUIRED.
type
the type of normalization. Must be on of "global", "slice", "3slices" or NULL leading to select all types of normalization.
mu
should the centering values for the normalization be returned. logical. Active only if type is "slice" or "3slices".
sigma
should the scaling values for the normalization be returned. logical. Active only if type is "slice" or "3slices".
num
the slices to extract. numeric vector or NULL.
hemisphere
the hemisphere to extract. character.
param
the contrast parameters for which the normalization values should be extracted. character vector or NULL indicating all available contrast parameters.

Value

A data.frame or a list.

Details

ARGUMENTS: Information about the num argument can be found in the details section of initNum.

Information about the hemisphere argument can be found in the details section of selectContrast.

See Also

calcNormalization to compute and allocate the normalisation values. allocNormalization<- to alloacte the normalization values when obtained from an external source. calcHemisphere to identify the hemispheres. allocHemisphere<- and allocContrast<- to allocate hemispheres obtained from an external source.

Examples

Run this code
## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")

## select all normalization values
res <- selectNormalization(MRIaggr.Pat1_red)
names(res)

## select specific normalization normalization values 
# computed on the whole brain
res <- selectNormalization(MRIaggr.Pat1_red, type = "global", 
         mu = TRUE, sigma = FALSE, hemisphere = "both")
# idem but only for DWI_t0
res <- selectNormalization(MRIaggr.Pat1_red, type = "global",
         mu = TRUE, sigma = FALSE, param = "DWI_t0") 

# computed by slice
res <- selectNormalization(MRIaggr.Pat1_red, type="slice", 
         mu = TRUE,sigma = FALSE, hemisphere = "both") 
# idem for slice 1
res <- selectNormalization(MRIaggr.Pat1_red, type = "slice", 
         mu = TRUE, sigma = FALSE, num = 1) 

# computed on 3 consecutive slices
res <- selectNormalization(MRIaggr.Pat1_red, type = "3slices", mu = FALSE, sigma = TRUE, 
                           hemisphere = "left", num = 2, param = "T2_FLAIR_t2")

Run the code above in your browser using DataLab