save landmarks

Skip to first unread message

Ilaria A.

Mar 6, 2021, 4:44:55 AMMar 6
to scalismo

Hi everybody,
I have a question: I found the landmarks on my target from the landmarks of the reference, using the function findclosestpoint:
val targetIDs = => target.findClosestPoint(lm).id)
val targetLM ={id => target.point(id)}
show(targetLM, "transLm")

Now, I need to save my targetLM as a file .json, there is a way to do this using ScalismoLab?

Best regards,

Marcel Luethi

Mar 6, 2021, 5:29:52 AMMar 6
to Ilaria A., scalismo
Hi Ilaria,

You can either save it by right clicking on "landmarks" in the scene tree in ScalismoLab, or from code as follows:
> val landmarks : Seq[Landmark[_3D]] = ???
> LandmarkIO.writeLandmarksJson(landmarks.toList, new"filename.json")).get

Best regards,


You received this message because you are subscribed to the Google Groups "scalismo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages