# Veselness filter

**URL:** <https://discourse.slicer.org/t/veselness-filter/17739>\
**Category:** Support\
**Tags:** vmtk\
**Created:** [May 23, 2021, 4:00am UTC](https://discourse.slicer.org/t/veselness-filter/17739 "2021-05-23T04:00:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Winet\_Azer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/winet_azer/32/11025_2.png) [@Winet\_Azer](https://discourse.slicer.org/u/Winet_Azer)\
**Post date:** [May 23, 2021, 4:00am UTC](https://discourse.slicer.org/t/veselness-filter/17739/1 "2021-05-23T04:00:49Z")

</div>

Operating system: windows  
Slicer version: 4.11.20200930

Hello,  
In my project I use the VMTK plug in for segmentation. When creating the centerline I wonder if there is a possibility to export the data concerning the diameter and the distance as well as their coordinates at the same time. I explain with VMTK we can have either a table of the centerline concerning the diameters according to the distance or another table with the coordinates of some points of this centerline, but the two tables are not of the same dimension and so we can’t just add them to have all the information. is there another way to generate directly a table with all the information (x, y, z, diameter, distance)

Thank you very much

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [May 23, 2021, 9:59am UTC](https://discourse.slicer.org/t/veselness-filter/17739/2 "2021-05-23T09:59:01Z")

</div>

> [@Winet\_Azer](#):
>
> or another table with the coordinates of some points of this centerline

Which module gives you the point coordinates of a centerline ? Is it a centerline model or a centerline curve ? The distance from the start of the centerline is available in ‘Centerline metrics’ module. Is it the module you’re referencing ? You title hints at ‘Vesselness Filtering’ module : can you precise your request ?

---

<div class="post-metadata">

**Author:** ![Winet\_Azer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/winet_azer/32/11025_2.png) [@Winet\_Azer](https://discourse.slicer.org/u/Winet_Azer)\
**Post date:** [May 23, 2021, 10:21pm UTC](https://discourse.slicer.org/t/veselness-filter/17739/4 "2021-05-23T22:21:44Z")

</div>

Thank you for your feedback, yes indeed the module CENTERLINE METRICS gives me distances and diameters, and the center line curve gives me the coordinates of the points. My question is to know if there is a way to have all this information in a single file.  
I thought of exporting both types of information but the problem is that for a given centerline the dimensions of the two information tables are not the same.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [May 24, 2021, 8:48am UTC](https://discourse.slicer.org/t/veselness-filter/17739/5 "2021-05-24T08:48:49Z")

</div>

The RAS coordinates can be added to the table provided by ‘Centerline metrics’, as in the picture below.

![Screenshot_20210524_091054](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/c/cce98be64028c1761dbed62deec8bdb7826f2d23.png)

If that’s what you expect, I’ll send a pull request to update the ‘Centerline metrics’ module.

Please note that this module can work with centerline models created by the ‘Extract centerline’ module only. These models have an associated ‘Radius’ array, that is actually used by ‘Centerline metrics’. The latter module cannot work with centerline curves produced by ‘Extract centerline’ because these do not have an associated ‘Radius’ array for each constituting point. Besides, a markups curve can be modified in the UI, which would require recomputing all metrics. This computation is done in ‘Extract centerline’, and is quite a tough procedure.

---

<div class="post-metadata">

**Author:** ![Winet\_Azer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/winet_azer/32/11025_2.png) [@Winet\_Azer](https://discourse.slicer.org/u/Winet_Azer)\
**Post date:** [May 24, 2021, 9:03am UTC](https://discourse.slicer.org/t/veselness-filter/17739/6 "2021-05-24T09:03:21Z")

</div>

hello, this is exactly what i am looking for. please send the pull request to update. Thank you very much

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [June 5, 2021, 9:51am UTC](https://discourse.slicer.org/t/veselness-filter/17739/7 "2021-06-05T09:51:19Z")

</div>

Unfortunately, the [pull request](https://github.com/vmtk/SlicerExtension-VMTK/pull/27) didn’t gain interest. If you can apply patches to a file, I’ll send you the corresponding patch. You could then update your local copy of Centerlinemetrics.py.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 6, 2021, 1:48am UTC](https://discourse.slicer.org/t/veselness-filter/17739/8 "2021-06-06T01:48:25Z")

</div>

> [@chir.set](#):
>
> Unfortunately, the [pull request](https://github.com/vmtk/SlicerExtension-VMTK/pull/27) didn’t gain interest. I

Thank you for your contributions! The interest is absolutely there, but we need to juggle with many things and very hard to respond to all requests in as quickly as they would deserve.

Next time if you don’t get a timely response then the best is to add a comment every 2-3 days. You can also @mention the name of the people that you think could help.

---

<div class="post-metadata">

**Author:** ![Winet\_Azer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/winet_azer/32/11025_2.png) [@Winet\_Azer](https://discourse.slicer.org/u/Winet_Azer)\
**Post date:** [June 8, 2021, 10:29am UTC](https://discourse.slicer.org/t/veselness-filter/17739/9 "2021-06-08T10:29:51Z")

</div>

@chir.set thanks for the answer, yes I can apply patch to my files. please send me the corresponding patch.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [June 8, 2021, 11:11am UTC](https://discourse.slicer.org/t/veselness-filter/17739/10 "2021-06-08T11:11:22Z")

</div>

This feature has been merged in the repository, please update your SlicerVMTK extension.

However, choosing between ‘Cumulative’ and ‘Projected’ distance will generate a runtime error. A new pull request in awaiting attention. Everything else is OK.

@lassoan

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [June 8, 2021, 4:23pm UTC](https://discourse.slicer.org/t/veselness-filter/17739/11 "2021-06-08T16:23:08Z")

</div>

> [@chir.set](#):
>
> generate a runtime error

@Winet_Azer  
This has been fixed and merged, thanks @lassoan. Next SlicerVMTK extension build will be flawless regarding this module.
