## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")
res <- calcHemisphere(MRIaggr.Pat1_red, param = "T2_GRE_t0", num = 1,
mask = c("MASK_DWI_t0","MASK_T2_FLAIR_t2"), i_test = c(-5,0,5), angle.test = c(-0.5,0,0.5),
verbose = TRUE, update.object = TRUE, overwrite = TRUE)
res <- calcHemisphere(MRIaggr.Pat1_red, param = "T2_GRE_t0",
verbose = TRUE, update.object = TRUE, overwrite = TRUE)
## display the mid-sagittal plan
multiplot(MRIaggr.Pat1_red, param = "T2_GRE_t0", num = 3, legend = FALSE,
midplane = TRUE, main = "original coordinates - slice ")
## display with the new coordinates
multiplot(selectContrast(MRIaggr.Pat1_red, param = c("i_hemisphere","j_hemisphere","k")),
contrast=selectContrast(MRIaggr.Pat1_red, param = "T2_GRE_t0"), num = 3,
index1=cbind(0, seq(-50,50), 3), main = "new coordinates - slice ", legend = FALSE)
## compute the mid-sagittal plan and mark lesion and healthy hemispheres
res <- calcHemisphere(MRIaggr.Pat1_red, param = "T2_GRE_t0",
mask = c("MASK_DWI_t0","MASK_T2_FLAIR_t2"), numeric2logical = TRUE,
verbose = TRUE, update.object = TRUE, overwrite = TRUE)
Run the code above in your browser using DataLab