Convert CSV files to be loadable as Fiducials or as Sequence of Fiducials (JSON)

In recent Slicer Preview Releases, you can use the table import feature in Markups module.

All you need to do is to create a valid csv file from this, by adding a header. If the coordinates are in LPS coordinate system then add l,p,s as column names, if the coordinates are in RAS then use r,a,s. For example:

r, a, s
0.020008288323879242,0.020008288323879242,0.020008288323879242
-5.5104074478149405,21.592485427856445,11.360527992248535
-3.809137344360352,20.855607986450195,11.380624771118164
-2.173929452896118,20.26450729370117,11.737421989440916
-0.4237257242202759,19.472154617309567,12.046059608459473
1.1728017330169676,18.723459243774414,12.897193908691408
3.3027710914611816,19.262800216674805,13.48173522949219
5.7919020652771,22.181146621704098,11.295902252197264
7.3409905433654785,19.74334526062012,6.751131057739258
5.514996528625488,17.492221832275387,5.892641067504882

You can then save this file as .csv and use it as control point coordinates in Slicer:

  • drag-and-drop the .csv file on the Slicer application window and click “Apply” to load it as a table
  • go to Markups module
  • create a markup node (fiducial list, curve, …)
  • in “Export/import table” section choose “Import” and select the input table
  • click “Import”

There are a couple of more columns that you can add, such as point labels or selected state. See a complete list here.

If you want to import a markup directly from a file and/or specify markup display properties (colors, opacities, glyph size, …) then you can create a .mrk.json file. See more information here.