[vtkusers] Closed vtkPolyLine to binary image

Dirk Boye body at nabla.org
Mon Jul 12 09:30:01 EDT 2010


Hi Lars,

Thank you for your help. My problem now seems to be, that my contour lines
don't have any normals.

Do you know if there's some function to generate the normals?

Cheers,
Dirk

> Hi,
>
> I added a small example:
>
> http://www.cmake.org/Wiki/VTK/Examples/PolyData/PolyDataContourToImageData
>
> Hope that helps you.
>
> However, please read the NOTE in the description. Maybe you could fix /
> verify the image origin problem.
>
> regards,
> lars
>
> -------- Original-Nachricht --------
>> Datum: Mon, 12 Jul 2010 08:36:32 +0200
>> Von: "Dirk Boye" <body at nabla.org>
>> An: vtkusers at vtk.org
>> Betreff: [vtkusers] Closed vtkPolyLine to binary image
>
>> Dear list,
>>
>> let's say I have a closed vtkPolyLine in 2D and points are
>> ordered clockwise and last point=first point.
>> The resulting Polygon is non-convex.
>>
>> I'd like to create a binary image
>> from that. Ones inside the line, zeros outside. See picture:
>> http://www.nabla.org/circlecontour.png
>>
>> Is there an filter to do that? Or do I have to check all pixels,
>> if they are inside?
>>
>>
>> Cheers,
>> Dirk
>>
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>
> --
> GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
> Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
>
>




More information about the vtkusers mailing list