I’ve used Slicer for segmentation but Checkpoint for landmarking, exporting my landmarks as Morphologika and csv files. However, to create good visualizations of my landmarks on the skull surface for publication, the best approach seems to be importing those landmarks back into Slicer.
The best tool I found for this was the MorphologikaLMConverter module in SlicerMorph. However, while this mostly works (creates a file of the landmarks I can open in Slicer), it appears to be mirroring the landmarks (consistently changing the sign), resulting in a configuration that is the right size and location but incorrect orientation for matching my segmentation.
Does anyone have any suggestions for how to fix this/what I’m doing wrong? I realize I could probably manually fix the “-” signs in the resulting fcsv files, but it does seem like there ought to be a better solution.
I’ve attached screeshots of the two text files side-by-side (Morphologika (.txt) on the left, Slicer (.fcsv) on the right) as well as what the landmarks and segmentation look like together in Slicer.
Thank you very much!
Anya Auerbach, PhD student, University of Minnesota
MorphologikaLMConverter was written years ago for one dataset and never really tested thorougly. If you are an R user, my suggestion would be to read the original Morphologika file to R, then user the SlicerMorphR’s write.markup.json to save them as individual files (we will drop fcsv support Slicer sometime, so better use the json format).
Having said that, your issue seems simple the typical LPS to RAS problem. You can create a transform matrix in which the first two diagonal values are -1, and then put these fcsv files under that transform.
if they line up correctly, then you can harden the transform and save the file one more time and they will be fixed.
Thank you so much, the R function worked! That was a very straightforward solution so I didn’t try the transform option.
I did notice that the documentation for write.markup.json didn’t seem to show up in R - the write.markups.fcsv function did and fortunately they seemed to work the same.
Anya