[vtkusers] Extract a tube of data from DICOM series data
David Gobbi
david.gobbi at gmail.com
Wed Nov 5 12:10:02 EST 2014
Hi Vincent,
This can be done with vtkROIStencilSource, which can be used
to create a cylindrical region for use with vtkImageStencil. The
code would be something like this:
stencilSource = vtkROIStencilSource()
stencilSource.SetShapeToCylinderZ()
stencilSource.SetBounds(upstream.GetOutput().GetBounds())
stencilSource.SetInformationInput(upstream.GetOutput())
stencilFilter = vtkImageStencil()
stencilFilter.SetInputConnection(upstream.GetOutputPort())
stencilFilter.SetStencilConnection(stencilSource.GetOutputPort())
- David
On Wed, Nov 5, 2014 at 9:48 AM, Vincent32160 <vsh at magellium.fr> wrote:
> Hello,
> I need to extract from DICOM series images (CTScan cylinder) a tube of data
> of a specific radius. I had good result using vtkExtractVOI but instead of
> a
> rectangular volume, I would like to extract a tube (meaning a cylinder
> without filling). Thanks for your help.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141105/012bdc29/attachment.html>
More information about the vtkusers
mailing list