[vtkusers] Conversion Example
Cory Quammen
cory.quammen at kitware.com
Mon Jan 4 16:16:33 EST 2016
I am guessing you want to voxelize a polygonal geometry into a binary image
where voxels inside the geometry have one value and voxels outside the
geometry have another value. Is that correct?
There isn't anything that I know of that does exactly this, but please see
this example for generating an image from an implicit sphere object to get
you started:
http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Imaging/Core/Testing/Python/TestStencilToImage.py
You can change the functionToStencil object to an instance of
vtkPolyDataToImageStencil and connect it to the output of a vtkOBJReader.
HTH,
Cory
On Wed, Dec 23, 2015 at 3:11 AM, Constantinus Spanakis <
c.spanakis83 at gmail.com> wrote:
> Hello. I am a new user of VTK and I was wondering if there is an example
> of 3D file (VRML, OBJ, etc) conversion to Image Conversion(mha, mhd+raw).
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> This
> email has been sent from a virus-free computer protected by Avast.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#151cde4877ea5a22_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160104/019d8d7e/attachment.html>
More information about the vtkusers
mailing list