write.slicerjson {Morpho}R Documentation

Export landmarks (or any 3D coordinates) to the new slicer json format

Description

Export landmarks (or any 3D coordinates) to the new slicer json format

Usage

write.slicerjson(
  x,
  filename = dataname,
  type = c("Fiducial", "Curve", "ClosedCurve"),
  coordinateSystem = c("LPS", "RAS"),
  labels = dataname
)

Arguments

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.


[Package Morpho version 2.12 Index]