Last chance! 50% off unlimited learning
Sale ends in
"calcRegionalContrast"(object,param, bandwidth, power = 2, diagonal = FALSE, W = "ifany", W.range, W.spatial_res = c(1,1,1), num = NULL, hemisphere = "both", name_newparam = paste(param,"regional", sep = "_"), verbose = optionsMRIaggr("verbose"), update.object = FALSE, overwrite = FALSE)
MRIaggr
. REQUIRED."ifany"
leading to use the neighbourhood matrix stored in the object
if possible, else to compute this matrix.W
have to be computed.NULL
.object
? logical.object
can they be overwritten ? logical.ARGUMENTS :
Information about the num
argument can be found in the details section of initNum
.
Information about the hemisphere
arguments can be found in the details section of selectContrast
.
Information about bandwidth
and power
arguments can be found in the details section of EDK
.
selectContrast
to select the regional parameter(s).
calcW
to compute the neighboring matrix.
## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")
## compute regional values
res <- calcRegionalContrast(MRIaggr.Pat1_red, param = c("T2_FLAIR_t2","T1_t0"), bandwidth = 1.875,
W.spatial_res = c(1.875,1.875,6), W.range = 6,
update.object = TRUE, overwrite = TRUE)
## display
par(mfrow = c(2,4), mar = rep(1.5,4), mgp = c(2,0.5,0))
multiplot(MRIaggr.Pat1_red, param = "T2_FLAIR_t2", num = 1:3,
window = NULL, main = "raw - slice ")
multiplot(MRIaggr.Pat1_red, param = "T2_FLAIR_t2_regional", num = 1:3,
window = NULL, main = "regional - slice ")
Run the code above in your browser using DataLab