<div dir="ltr">Hi Vincent,<div><br></div><div>This can be done with vtkROIStencilSource, which can be used</div><div>to create a cylindrical region for use with vtkImageStencil.  The</div><div>code would be something like this:</div><div><br></div><div><div>stencilSource = vtkROIStencilSource()</div><div>stencilSource.SetShapeToCylinderZ()</div><div>stencilSource.SetBounds(upstream.GetOutput().GetBounds())</div><div>stencilSource.SetInformationInput(upstream.GetOutput())</div><div> </div><div>stencilFilter = vtkImageStencil()</div><div>stencilFilter.SetInputConnection(upstream.GetOutputPort())</div><div>stencilFilter.SetStencilConnection(stencilSource.GetOutputPort())</div></div><div><br></div><div> - David</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 5, 2014 at 9:48 AM, Vincent32160 <span dir="ltr"><<a href="mailto:vsh@magellium.fr" target="_blank">vsh@magellium.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello,<br>
I need to extract from DICOM series images (CTScan cylinder) a tube of data<br>
of a specific radius. I had good result using vtkExtractVOI but instead of a<br>
rectangular volume, I would like to extract a tube (meaning a cylinder<br>
without filling). Thanks for your help.<br></blockquote></div></div></div>