# Convert UnstructuredGrid (\*.vtu) to ImageData (\*.vti)

**URL:** https://discourse.paraview.org/t/convert-unstructuredgrid-vtu-to-imagedata-vti/7944
**Category:** ParaView Support
**Created:** [September 6, 2021, 12:42am UTC](https://discourse.paraview.org/t/convert-unstructuredgrid-vtu-to-imagedata-vti/7944 "2021-09-06T00:42:24Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![adamgranthendry](https://discourse.paraview.org/user_avatar/discourse.paraview.org/adamgranthendry/32/7472_2.png) [@adamgranthendry](https://discourse.paraview.org/u/adamgranthendry)
#### Post date: [September 6, 2021, 12:42am UTC](https://discourse.paraview.org/t/convert-unstructuredgrid-vtu-to-imagedata-vti/7944/1 "2021-09-06T00:42:24Z")

</div>

How does one convert an UnstructuredGrid (`*.vtu`) file to ImageData (`*.vti`)? Is there a resampling filter I can use?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 6, 2021, 6:09am UTC](https://discourse.paraview.org/t/convert-unstructuredgrid-vtu-to-imagedata-vti/7944/2 "2021-09-06T06:09:10Z")

</div>

RessampleToImage

---

<div class="post-metadata">

### Author: ![adamgranthendry](https://discourse.paraview.org/user_avatar/discourse.paraview.org/adamgranthendry/32/7472_2.png) [@adamgranthendry](https://discourse.paraview.org/u/adamgranthendry)
#### Post date: [September 6, 2021, 7:11pm UTC](https://discourse.paraview.org/t/convert-unstructuredgrid-vtu-to-imagedata-vti/7944/3 "2021-09-06T19:11:44Z")

</div>

@mwestphal When I use this, I get a blank outline and no surface or volume.

FYI, my input data to `ResampleToImage` is an isosurface (generated with `Contour` filter) that I then box clipped some portions out, which turned my origina `lmageData` to `UnstructuredGrid`.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 7, 2021, 7:36am UTC](https://discourse.paraview.org/t/convert-unstructuredgrid-vtu-to-imagedata-vti/7944/4 "2021-09-07T07:36:55Z")

</div>

RessampleToImage is bad with surfaces, try GaussianRessampling instead.

---

<div class="post-metadata">

### Author: ![adamgranthendry](https://discourse.paraview.org/user_avatar/discourse.paraview.org/adamgranthendry/32/7472_2.png) [@adamgranthendry](https://discourse.paraview.org/u/adamgranthendry)
#### Post date: [September 7, 2021, 8:07am UTC](https://discourse.paraview.org/t/convert-unstructuredgrid-vtu-to-imagedata-vti/7944/5 "2021-09-07T08:07:45Z")

</div>

That doesn’t seem to work either ☹

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 7, 2021, 8:21am UTC](https://discourse.paraview.org/t/convert-unstructuredgrid-vtu-to-imagedata-vti/7944/6 "2021-09-07T08:21:41Z")

</div>

Please share your data.

---

<div class="post-metadata">

### Author: ![adamgranthendry](https://discourse.paraview.org/user_avatar/discourse.paraview.org/adamgranthendry/32/7472_2.png) [@adamgranthendry](https://discourse.paraview.org/u/adamgranthendry)
#### Post date: [September 7, 2021, 8:26pm UTC](https://discourse.paraview.org/t/convert-unstructuredgrid-vtu-to-imagedata-vti/7944/7 "2021-09-07T20:26:33Z")

</div>

@mwestphal I’m unable to share my data at this moment, but I am having our company establish and NDA so I can share data.
