[vtkusers] Draw contour of segmentation in a vtkImage
Sergio Vera
sergio.vera at alma3d.com
Thu Feb 12 03:10:24 EST 2015
Thanks David
I've made a few tests and it works perfectly. Indeed much better that my
awkward solution..
thanks
On Tue, Feb 10, 2015 at 5:55 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> Hi Sergio,
>
> Here are some methods that can be used:
>
> 1) Use vtkCutter to convert the polydata into a 2D contour, and then use
> vtkTubeFilter to thicken the contour for better visibility.
>
> 2) Instead of vtkTubeFilter to thicken the contour, you can use
> vtkContourTriangulator to fill the contour.
>
> 3) Render the 3D polydata as a wireframe, so that you can see the image
> through the mesh.
>
> - David
>
>
>
> On Tue, Feb 10, 2015 at 9:29 AM, Sergio Vera <sergio.vera at alma3d.com>
> wrote:
>
>> Dear vtk users
>>
>> I have a vtkImage with a CT and some segmentations as vtkPolyData,
>>
>> Currently I draw the vtkPolyData on top of the image but the image is
>> hidden by the meshes.
>> I would like to represent the segmentation as contours in the image.
>>
>> I have tried to use vtkPolyDataMapper with two slice planes to display
>> just a thin portion of the mesh but the result is subpar.
>>
>> Is there any better way to display my segmentations as (possibly filled
>> with a semitransparent color) a contour over the image?
>>
>> Best regards
>>
>
--
Sergio Vera
Alma IT Systems
C/ Vilana, 4B, 4º 1ª
08022 Barcelona
T. (+34) 932 380 592
www.alma3d.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150212/2875fff1/attachment.html>
More information about the vtkusers
mailing list