# Extract specified contour from vtkImageData

**URL:** https://discourse.vtk.org/t/extract-specified-contour-from-vtkimagedata/8055
**Category:** Support
**Created:** [March 15, 2022, 7:24am UTC](https://discourse.vtk.org/t/extract-specified-contour-from-vtkimagedata/8055 "2022-03-15T07:24:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![xianger.qi](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/x/f14d63/32.png) [@xianger.qi](https://discourse.vtk.org/u/xianger.qi)
#### Post date: [March 15, 2022, 7:24am UTC](https://discourse.vtk.org/t/extract-specified-contour-from-vtkimagedata/8055/1 "2022-03-15T07:24:37Z")

</div>

i have a vtkImageData, and a contour polydata. please refer to below picture.  
the white contour, which is refered by red arrow represent clipping contour clips the volume data.

 ![pic2](https://discourse.vtk.org/uploads/default/original/2X/5/5632f3226c04fe4a2fb296cb9eb176e75687a1e1.jpeg)  
i want to get the target vtkimagedata clied by contour, just like the below picture  
 ![pic1](https://discourse.vtk.org/uploads/default/original/2X/8/8d60865a45e99fcccacee186fa46c15197997bc7.jpeg)

Is there any one could help me ? Thanks!
