[vtkusers] Clip a 3D image to get special slice
Charles Monty Burns
ch.monty.burns at googlemail.com
Tue Nov 11 15:53:18 EST 2008
Hello,
I want to get exactly one slice out of a 3D image.
I test this:
a = vtk.vtkImageClip()
a.SetInput(my3dimage)
a.SetOutputWholeExtent(*[0, 624, 0, 872, 248, 248])
a.ClipDataOn()
a.Update()
my_new_one_slice_image = a.Output()
But the Output is not the one image, it has exactly the same extent than the
original, but without any scalars except the wanted slice.
What can I do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081111/77e665c7/attachment.htm>
More information about the vtkusers
mailing list