Description Usage Arguments Details Value Examples
Make a 3D plot of the lesion. (experimental version)
1 2 3 4 5 |
object |
an object of class |
mask |
the binary contrast parameter indicating the lesion. character. REQUIRED. |
edge |
should the edges of the lesion be ploted instead of the core ? logical. |
Neighborhood |
the type of neighbourhood used to defined the edges. character. |
numeric2logical |
should |
spatial_res |
a dilatation factor for the coordinates. positive numeric vector of size 3. |
xlim |
the x limits of the plot. numeric vector of size 2 or |
ylim |
the y limits of the plot. numeric vector of size 2 or |
zlim |
the z limits of the plot. numeric vector of size 2 or |
type.plot |
the type of plot to be displayed. Can be |
px_max |
the maximum number of points that can be ploted. integer. |
radius |
the radius of spheres. numeric. See |
type |
the type of item to plot. character. See |
col |
the color of the core of the lesion. character. |
col.edge |
the color of the edge of the lesion. character. |
ARGUMENTS:
the Neighborhood
argument can be a matrix or an array defining directly the neighbourhood to use (i.e the weight of each neighbor)
or a name indicating which type of neighbourhood should be used (see the details section of initNeighborhood
).
FUNCTION:
This functions uses the plot3d
or shapelist3d
and thus require the rgl package to work. This package is not automatically loaded by the MRIaggr
package.
None.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## load a MRIaggr object
data("MRIaggr.Pat1_red", package = "MRIaggr")
## Not run:
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)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.