[vtkusers] vtkClipImage

Jérôme jerome.velut at gmail.com
Fri Jan 22 04:34:23 EST 2010


Hi,

it depends on what you want to do with your clipped output...
If you want to extract a subset of the ImageData (ie cube-like implicit
function), then you can use vtkExtractVOI. It will produce a smaller
ImageData suitable for all ImageAlgorithms.
However, if your implicit function is eg. a sphere, it is not possible to
build an imagedata, because it is based on an implicit grid based on
extent/spacing. You can use vtkClipDataSet,
that will give you a vtkUnstructuredGrid as output. Note that, for instance,
Paraview is able to compute an histogram from unstructured grid, and VTK as
volume rendering support for
unstructured grid.

HTH
Jerome

2010/1/22 superzz <jxdw_zlf at yahoo.com.cn>

>
> Hello
> With vtkClipPolyData, we can clip poly data with implicit function. I want
> to clip ImageData with implicit function now. But there is no vtkClipImage
> class. Does vtk support this function now?
>
> Thanks
>
> superZZ
> --
> View this message in context:
> http://old.nabble.com/vtkClipImage-tp27270145p27270145.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100122/f7e7e5d7/attachment.htm>


More information about the vtkusers mailing list