# myvmtkmeshDlabeling

**URL:** <https://discourse.slicer.org/t/myvmtkmeshdlabeling/22959>\
**Category:** VMTK\
**Tags:** feature, segmentation, python, 3d-model, meshing\
**Created:** [April 14, 2022, 9:58am UTC](https://discourse.slicer.org/t/myvmtkmeshdlabeling/22959 "2022-04-14T09:58:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![19lollo95](https://avatars.discourse-cdn.com/v4/letter/1/82dd89/32.png) [@19lollo95](https://discourse.slicer.org/u/19lollo95)\
**Post date:** [April 14, 2022, 9:58am UTC](https://discourse.slicer.org/t/myvmtkmeshdlabeling/22959/1 "2022-04-14T09:58:08Z")

</div>

I’m working with macOS operating system on mac with M1 processor.  
I’m having problems in order to obtain a meshDxx.vtu (starting from 2 files meshR.vtu and Dxx.mhd) which associates the values of the tensor built in Dxx.mhd to the meshR.  
Following a guide given to me, I ran the following command:  
`vmtk myvmtkmeshDlabeling -ifile meshR.vtu -diffusionmapfile Dxx.mhd -diffusionarray "Dxx_labels" -ofile meshDxx.vtu`

I get the following output:

```auto
Executing myvmtkmeshDlabeling -ifile meshR.vtu -diffusionmapfile Dxx.mhd -diffusionarray Dxx_labels -ofile meshDxx.vtu

Automatic piping myvmtkmeshDlabeling
Parsing options myvmtkmeshDlabeling
    MeshInInputFileName = meshR.vtu
    DiffusionMapInputFileName = Dxx.mhd
    DiffusionArrayName = Dxx_labels
    MeshOutOutputFileName = meshDxx.vtu
Explicit piping myvmtkmeshDlabeling
Input myvmtkmeshDlabeling members:
    Id = 0
    Disabled = 0
    MeshIn = None
    MeshInInputFileName = meshR.vtu
    DiffusionMap = None
    DiffusionMapInputFileName = Dxx.mhd
    DiffusionArrayName = Dxx_labels
    Correction = 0
    Radius = 9
    OnlyNegatives = 0
    MeshOutOutputFileName = meshDxx.vtu
Reading VTK XML mesh file.
Spacing 0.449219 0.449219 0.900000
Origin -105.647736 -123.984390 -68.281136
Dimensions 448 512 176
Executing myvmtkmeshDlabeling ...
Creating points location array
Assigning diffusion values to tethraedrical mesh

```

It seems to be processing but I believe there is some problem as it doesn’t seem to have an end and I cannot obtain this file. How can I solve this problem?

---

<div class="post-metadata">

**Author:** ![ramtingh](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@ramtingh](https://discourse.slicer.org/u/ramtingh)\
**Post date:** [April 14, 2022, 3:21pm UTC](https://discourse.slicer.org/t/myvmtkmeshdlabeling/22959/2 "2022-04-14T15:21:12Z")

</div>

`myvmtkmeshDlabeling` isn’t a script shipped with vmtk, so not quite sure what you are attempting to do or what the problem could be.

---

<div class="post-metadata">

**Author:** ![19lollo95](https://avatars.discourse-cdn.com/v4/letter/1/82dd89/32.png) [@19lollo95](https://discourse.slicer.org/u/19lollo95)\
**Post date:** [April 14, 2022, 5:51pm UTC](https://discourse.slicer.org/t/myvmtkmeshdlabeling/22959/3 "2022-04-14T17:51:20Z")

</div>

I know that it is a vmtk command which takes in input a refined mesh (meshR.vtu), a component of the DTI and the name of the array to be associated with the mesh cells, and returns a new mesh that has, associated in each cell, the value of the chosen component of the diffusion tensor.In the guide I am using it is indicated that it is an alternative vmtk command to the python script label\_D.py
