# Simplex Mesh Deformable Model 3D wtih texture images

**URL:** https://discourse.itk.org/t/simplex-mesh-deformable-model-3d-wtih-texture-images/3447
**Category:** Algorithms
**Created:** [September 8, 2020, 7:01pm UTC](https://discourse.itk.org/t/simplex-mesh-deformable-model-3d-wtih-texture-images/3447 "2020-09-08T19:01:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Leonardo\_Henrique](https://discourse.itk.org/user_avatar/discourse.itk.org/leonardo_henrique/32/1696_2.png) [@Leonardo\_Henrique](https://discourse.itk.org/u/Leonardo_Henrique)
#### Post date: [September 8, 2020, 7:01pm UTC](https://discourse.itk.org/t/simplex-mesh-deformable-model-3d-wtih-texture-images/3447/1 "2020-09-08T19:01:55Z")

</div>

Hi itk-developers,

I’m using the itkDeformableSimplexMesh3DFilter to make a local adjustment of a simplex mesh. I was inserting a gradient image in the deform filter, however I want to insert a texture image instead of a gradiente image. I’m reading the mesh from a vtk file and the imagem from a NIfTI file. Do you have any suggestions how can I do this? Let me know if you need any further information, please.

Every help or idea is helpful.  
Thank you,  
Leonardo.

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [September 8, 2020, 7:12pm UTC](https://discourse.itk.org/t/simplex-mesh-deformable-model-3d-wtih-texture-images/3447/2 "2020-09-08T19:12:09Z")

</div>

As [DeformableSimplexMesh3DFilter](https://itk.org/Doxygen/html/classitk_1_1DeformableSimplexMesh3DFilter.html) only works with gradient images, you will need to convert your texture image into a gradient image. I assume you are not after a [simple gradient](https://itk.org/ITKExamples/src/Filtering/ImageGradient/ComputeGradientMagnitude/Documentation.html), so conversion from a texture to a gradient should be problem-dependent.
