R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(MRIaggr)
Loading required package: Rcpp
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MRIaggr/MRIaggr-calcRegionaContrast.Rd_%03d_medium.png", width=480, height=480)
> ### Name: calcRegionalContrast
> ### Title: Compute regional contrast parameters
> ### Aliases: calcRegionalContrast calcRegionalContrast,MRIaggr-method
> ### Keywords: methods
>
> ### ** Examples
>
> ## 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)
computing W ... W ready
param : T2_FLAIR_t2 T1_t0
allocContrast[MRIaggr] : Cartographies "T2_FLAIR_t2_regional" "T1_t0_regional"
have been allocated
>
> ## 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 ")
>
>
>
>
>
>
> dev.off()
null device
1
>