# PseudoLMGenerator - unit of Landmarks generated

**URL:** <https://discourse.slicer.org/t/pseudolmgenerator-unit-of-landmarks-generated/32508>\
**Category:** Support\
**Tags:** markups-fiducials\
**Created:** [October 31, 2023, 3:56pm UTC](https://discourse.slicer.org/t/pseudolmgenerator-unit-of-landmarks-generated/32508 "2023-10-31T15:56:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vignesh\_Chakravarthy](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vignesh_chakravarthy/32/66674_2.png) [@Vignesh\_Chakravarthy](https://discourse.slicer.org/u/Vignesh_Chakravarthy)\
**Post date:** [October 31, 2023, 3:56pm UTC](https://discourse.slicer.org/t/pseudolmgenerator-unit-of-landmarks-generated/32508/1 "2023-10-31T15:56:42Z")

</div>

Hi Dr. Murat,

I am using PseudoLMGenerator to get landmarks on the prostate model (slicer 5.2.2). I am attaching the details of the model for reference (surface area and volume are calculated in mm2 and mm3 respectively). I have reduced the spacing tolerance to 0 to get more landmarks. Please clarify my two doubts.

1. What is the unit of the landmarks generated? The distance between two points in the projectedLM. I believe it is mm in my case.
2. I am interested in obtaining more landmarks out of the model. But the maximum points I can obtain is 1852 even when the spacing tolerance is 0. Is there any way to get template with more points?  
 ![pseudolm_pros](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/3/83736729e86dd77c52e7f7b3838c1460a3966c0c.jpeg)  
 ![pros_details](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/1/a1269861d1b714d9949db54c92404f67a2eeca16.jpeg)

Thanks,  
Vignesh

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [October 31, 2023, 5:12pm UTC](https://discourse.slicer.org/t/pseudolmgenerator-unit-of-landmarks-generated/32508/2 "2023-10-31T17:12:27Z")

</div>

@Vignesh_Chakravarthy The spacing tolerance is specified as a percentage of the bounding box diagonal, rather than an absolute value.

The number of landmark points you can generate is limited by the number of points in your original mesh. It’s a little hard to see in your screenshot, but it looks like your prostate model has 1854 points. This is the best you can do with the tolerance set to 0. You are getting 1852 points, which is likely because the filter used in this step will automatically remove any coincident points and you likely had a couple in your model.

To generate more points, you can try useing the `Uniform remesh` tool in the `Surface Toolbox` module to oversample your model. Then run the PseudoLMGenerator on the new model.

---

<div class="post-metadata">

**Author:** ![Vignesh\_Chakravarthy](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vignesh_chakravarthy/32/66674_2.png) [@Vignesh\_Chakravarthy](https://discourse.slicer.org/u/Vignesh_Chakravarthy)\
**Post date:** [October 31, 2023, 5:28pm UTC](https://discourse.slicer.org/t/pseudolmgenerator-unit-of-landmarks-generated/32508/3 "2023-10-31T17:28:04Z")

</div>

Hi Sara,

Thanks for the clarification. Could you please let me know the unit of measurement between points in the generated template?

Regards,  
Vignesh

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [October 31, 2023, 5:30pm UTC](https://discourse.slicer.org/t/pseudolmgenerator-unit-of-landmarks-generated/32508/4 "2023-10-31T17:30:35Z")

</div>

> [@smrolfe](#):
>
> To generate more points, you can try useing the `Uniform remesh` tool in the `Surface Toolbox` module to oversample your model. Then run the PseudoLMGenerator on the new model.

As an example of what’s possible, I’m attaching a screenshot of 552 points sampled on a model with 552 points, and a screenshot of 1513 points sampled on the surface of the same model after uniform remeshing.

 ![549](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/f/df34f8e5458095b2e5051d045b74750edb5d3a32.png)  
 ![1513](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/0/60456a476f0ec04453fcb55d99ba55c0d3e0cf2e.png)

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [October 31, 2023, 5:35pm UTC](https://discourse.slicer.org/t/pseudolmgenerator-unit-of-landmarks-generated/32508/5 "2023-10-31T17:35:14Z")

</div>

> [@Vignesh\_Chakravarthy](#):
>
> Could you please let me know the unit of measurement between points in the generated template?

The landmarks points are sampled from the model, so will be in the same units as the original. The enforced distance between the points is measured as a fraction of the bounding box diagonal.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [October 31, 2023, 5:58pm UTC](https://discourse.slicer.org/t/pseudolmgenerator-unit-of-landmarks-generated/32508/6 "2023-10-31T17:58:39Z")

</div>

> [@Vignesh\_Chakravarthy](#):
>
> nit of measurement between points in the generated template?

It is in the same units as your original data (in this case model).

---

<div class="post-metadata">

**Author:** ![Vignesh\_Chakravarthy](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vignesh_chakravarthy/32/66674_2.png) [@Vignesh\_Chakravarthy](https://discourse.slicer.org/u/Vignesh_Chakravarthy)\
**Post date:** [October 31, 2023, 7:31pm UTC](https://discourse.slicer.org/t/pseudolmgenerator-unit-of-landmarks-generated/32508/7 "2023-10-31T19:31:21Z")

</div>

Thanks Dr. Sara and Dr. Murat for your prompt responses. I can oversample the model using “surface Toolkit” and get desired number of landmarks with PseudoLMGenerator!
