Description Usage Arguments Details Value Examples
Generate from an existing MRIaggr
object a new one with lower spatial resolution.
1 2 3 | ## S4 method for signature 'MRIaggr'
constCompressMRIaggr(object, compression.factor, param = NULL,
mask = NULL, threshold = 0.49, verbose = optionsMRIaggr("verbose"))
|
object |
an object of class |
compression.factor |
the compression factor. postive integer. REQUIRED. |
param |
the contrast parameters to load in the new MRIaggr object. character vector or |
mask |
the binary contrast parameter(s). character vector. |
threshold |
the value above which the local mean of the binary parameters is assigned to 1 (and otherwise to 0). numeric between 0 and 1. |
verbose |
should the execution of the function be traced ? logical. |
ARGUMENTS:
Information about the param
argument can be found in the details section of initParameter
.
FUNCTION:
The fonction uses a local mean to compress the initial parameters maps to a lower resolution.
a MRIaggr
object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## 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 ")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.