## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")
## compress the MRIaggr object
MRIaggr.compressed <- constCompressMRIaggr(MRIaggr.Pat1_red, compression.factor = 2,
param = c("DWI_t0","T2_FLAIR_t2","MASK_T2_FLAIR_t2"),
mask = "MASK_T2_FLAIR_t2")
## display
par(mfrow = c(2,4), mar = rep(1.75,4), mgp = c(2,0.75,0))
multiplot(MRIaggr.Pat1_red, param = "DWI_t0", window = NULL, breaks = seq(0,350,1),
midplane = TRUE, main = "before - slice ")
multiplot(MRIaggr.compressed, param = "DWI_t0", window = NULL, breaks = seq(0,350,1),
midplane = TRUE, main = "after - slice ")
multiplot(MRIaggr.Pat1_red, param = "MASK_T2_FLAIR_t2", main = "before - slice ")
multiplot(MRIaggr.compressed, param = "MASK_T2_FLAIR_t2", main = "after - slice ")
Run the code above in your browser using DataLab