[vtkusers] Converting vtkImageStencil to vtkImageData
David Gobbi
dgobbi at atamai.com
Fri Mar 31 07:08:24 EST 2006
Hi Hendrix,
There is a way to do the conversion indirectly: first you need to
create a blank image of the correct size, and then use the
vtkImageStencil filter to convert the blank image into a mask
by passing it through the stencil.
To create a blank image, you could (for example) use a
vtkImageEllipsoidSource() and use the same InValue and
OutValue.
This is a little bit more complicated than it should be! It
would be nice if there was a vtkImageStencilDataToImageData
filter that could do all the work in one step.
Tell me how it goes.
- David
----- Original Message ----
From: Hendrik Belitz <h.belitz at fz-juelich.de>
To: vtkusers at vtk.org
Sent: Friday, March 31, 2006 5:00:37 AM
Subject: [vtkusers] Converting vtkImageStencil to vtkImageData
Hi fellow VTK users,
I'm wondering if there's a way to convert a vtkImageStencil into a
vtkImageData for further processing (like morpholocigal operations or saving
as a binary image mask).
Regards
Hendrik
-------------------------------------------------------------------------------------
Dipl.-Inform. Hendrik Belitz
Central Institute of Electronics / Zentralinstitut für Elektronik
Multimodal image processing workgroup / AG Multimodale Bildverarbeitung
Research Center Juelich / Forschungszentrum Jülich GmbH
D-52428 Jülich, Germany
Tel.: (++49)2461 61 8701 Fax: (++49)2461 61 3990
email: h.belitz at fz-juelich.de
ggp-key available via http://pgpkeys.pca.dfn.de
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list