write.slicerjson: Export landmarks (or any 3D coordinates) to the new slicer...

View source: R/fiducials.r

write.slicerjsonR 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.


Morpho documentation built on June 22, 2024, 7:19 p.m.