# How to convert polyData to imageData

**URL:** <https://discourse.vtk.org/t/how-to-convert-polydata-to-imagedata/10575>\
**Category:** Development\
**Created:** [February 1, 2023, 6:17am UTC](https://discourse.vtk.org/t/how-to-convert-polydata-to-imagedata/10575 "2023-02-01T06:17:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jongzzi\_GanJang](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jongzzi_ganjang/32/6318_2.png) [@jongzzi\_GanJang](https://discourse.vtk.org/u/jongzzi_GanJang)\
**Post date:** [February 1, 2023, 6:17am UTC](https://discourse.vtk.org/t/how-to-convert-polydata-to-imagedata/10575/1 "2023-02-01T06:17:29Z")

</div>

Thank you for watching this post.

 ![스크린샷 2023-02-01 오후 3.10.56](https://discourse.vtk.org/uploads/default/original/2X/d/de0ef6331ae79d5345f6efeba44f02d057cd64df.jpeg)

The above example is a stencil image of origin, spacing, dimensions, and contour data drawn from reference.

Even if you put in any content data, there is a hole in the top.

I don’t know why. Help me.

---

<div class="post-metadata">

**Author:** ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)\
**Post date:** [February 1, 2023, 3:58pm UTC](https://discourse.vtk.org/t/how-to-convert-polydata-to-imagedata/10575/2 "2023-02-01T15:58:51Z")

</div>

If you want your data to be opaque, just edit the transfer function.

Also polyData and imageData don’t have anything in common except that you could convert an imageData into a polyData and loose all the inside of your original information.
