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
)
k x 3 matrix containing 3D coordinates
will be substituted with ".mrk.json"
character: specify type of coordinates. Can be any of "Fiducial", "Curve", "ClosedCurve".
character: specify coordinate system the data are in. Can be "LPS" or "RAS".
character or character vector containing landmark labels.