# Convert model to landmarks

**URL:** <https://discourse.slicer.org/t/convert-model-to-landmarks/4139>\
**Category:** Support\
**Created:** [September 18, 2018, 12:32pm UTC](https://discourse.slicer.org/t/convert-model-to-landmarks/4139 "2018-09-18T12:32:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahrokh](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shahrokh/32/1499_2.png) [@shahrokh](https://discourse.slicer.org/u/shahrokh)\
**Post date:** [September 18, 2018, 12:32pm UTC](https://discourse.slicer.org/t/convert-model-to-landmarks/4139/1 "2018-09-18T12:32:32Z")

</div>

Hi  
Dear developers and users.

With Steve’s tips and guidance, at now I can extract intersection points between lines (centerlinesMR and centerlinesCT) and the plane with **model type** separately(with [python script](https://discourse.slicer.org/t/intersection-two-models-plane-and-centerlines-ct-mr/4130/3)).  
In the figure below, intersection points centerlinesCT and plane are shown green and intersection points centerlinesMR and plane are shown red.

 ![Screenshot%20from%202018-09-18%2016-52-27](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/f/4f3880ae22d826445d77d490c8b9020a60b5111e.png)

At now, I want get BSpline transform between these group points. For doing it, I think that I must use “_Scattered Transform_” module. Inputs of this module should be of type landmark.

Now my question is: how can I convert these two **models** to two groups landmarks?

Please guide me.  
Thanks a lot,  
Shahrokh

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [September 18, 2018, 12:59pm UTC](https://discourse.slicer.org/t/convert-model-to-landmarks/4139/2 "2018-09-18T12:59:04Z")

</div>

Nice progress @shahrokh 👏

The [scattered transform](https://www.slicer.org/wiki/Documentation/Nightly/Extensions/ScatteredTransform) looks good, althrough I haven’t used it. For the next step, you can get a [numpy array from the model vertices](https://slicer.readthedocs.io/en/latest/developer_guide/slicer.html#slicer.util.arrayFromModelPoints) and then use the [markups](https://apidocs.slicer.org/v4.8/classvtkMRMLMarkupsFiducialNode.html#details) api to create the fiducials. I don’t see a simple script for creating fiducials, but [this code](https://github.com/pieper/LandmarkRegistration) may give you some ideas.
