## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")
## compute distance to initial and final mask
res <- calcDistMask(MRIaggr.Pat1_red, mask = c("MASK_DWI_t0","MASK_T2_FLAIR_t2"),
update.object = TRUE, overwrite = TRUE)
multiplot(MRIaggr.Pat1_red, param = "dist_MASK_DWI_t0",
index1 = list(coords = "MASK_DWI_t0", outline = TRUE))
## compute distance to initial and final mask correcting anisotropy
res <- calcDistMask(MRIaggr.Pat1_red, mask = c("MASK_DWI_t0","MASK_T2_FLAIR_t2"),
spatial_res = c(1.875,1.875,6),
update.object = TRUE, overwrite = TRUE)
multiplot(MRIaggr.Pat1_red, param = "dist_MASK_DWI_t0",
index1 = list(coords = "MASK_DWI_t0", outline = TRUE))
Run the code above in your browser using DataLab