write.slicerjson | R Documentation |
Export landmarks (or any 3D coordinates) to the new slicer json format
write.slicerjson(
x,
filename = dataname,
type = c("Fiducial", "Curve", "ClosedCurve"),
coordinateSystem = c("LPS", "RAS"),
labels = dataname
)
x |
k x 3 matrix containing 3D coordinates |
filename |
will be substituted with ".mrk.json" |
type |
character: specify type of coordinates. Can be any of "Fiducial", "Curve", "ClosedCurve". |
coordinateSystem |
character: specify coordinate system the data are in. Can be "LPS" or "RAS". |
labels |
character or character vector containing landmark labels. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.