## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")
if(require(rgl)){
# global view
plotLesion3D(MRIaggr.Pat1_red, mask = "MASK_T2_FLAIR_t2", spatial_res = c(1.875,1.875,6),
numeric2logical = TRUE)
# by slice
plotLesion3D(MRIaggr.Pat1_red, mask = "MASK_T2_FLAIR_t2", spatial_res = c(1.875,1.875,6),
type.plot = "plot3d",
numeric2logical = TRUE)
}
Run the code above in your browser using DataLab