[vtkusers] Closed vtkPolyLine to binary image
Lars Friedrich Lars
lars-friedrich at gmx.net
Mon Jul 12 05:11:02 EDT 2010
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