[vtkusers] about removing a spere in the 3D image

Kevin H. Hobbs hobbsk at ohiou.edu
Wed May 31 08:39:28 EDT 2006


On Wed, 2006-05-31 at 16:52 +0800, Yixun Liu wrote:
> Hi,
> 
> Thank you for your help:-)
> 
> I want to use a little sphere to move in a 3D data space, e.g. a 3D barin, which is reconstructed by a series of MRI. The data which the little sphere passed by will be remove from the 3D data. Can I use the stencil to reach this end?

The test I sent a link to before and that I'll to again below removes a
sphere from a 2d image. It is trivial to change it to work on a 3d
image: Just give it 3d data. I'll also attach the code I use to remove
an arbitrary polygon from an image.

http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Hybrid/Testing/Tcl/TestImageStencilWithPolydata.tcl?root=VTK&content-type=text/plain


-------------- next part --------------
A non-text attachment was scrubbed...
Name: RemoveObject.cxx
Type: text/x-c++src
Size: 2300 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060531/54156902/attachment.cxx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060531/54156902/attachment.pgp>


More information about the vtkusers mailing list