[vtkusers] UnstructuredGrid to ImageData?
laurent.paul at club-internet.fr
laurent.paul at club-internet.fr
Tue Aug 9 09:10:43 EDT 2005
Hi Amy,
First thanks for your very quick answer!
Because I didn't know I could get a volume probing my unstructuredGrid with... something. That's exactly what I need!
I use a 3D format (analyze) and if it's possible, I'd want to probe the unstructuredgrid to produce a single file Volume.
Have I to probe my data with a cube or something like that?
Laurent.
----Message d'origine----
>Date: Tue, 09 Aug 2005 08:58:46 -0400
>A: laurent.paul at club-internet.fr, vtkusers at vtk.org
>De: Amy Squillacote <amy.squillacote at kitware.com>
>Sujet: Re: [vtkusers] UnstructuredGrid to ImageData?
>
>For your vtkProbeFilter solution, why not create a 3D vtkImageData (a
>volume) instead of several single slices? Then you only have to
>probe once. You can still save out the vtkImageData as a series of
>images if that's the format you need for passing your data to ITK.
>(Take a look at the subclasses of vtkImageWriter.)
>
>- Amy
>
>At 08:47 AM 8/9/2005, laurent.paul at club-internet.fr wrote:
>
>>Hi users,
>>
>>I 've got a little problem and two solutions but I think (hope)
>>there is something better.
>>I've got a volume (vtkImageData) that I clip with a plane
>>(vtkClipVolume + vtkPlane).
>>I know this clipper produces UnstructuredGrid. I'd want to write the
>>clipped volume in a file to use it as input to a registration
>>program based on ITK.
>>I can clip the volume but don't know which format I can use to write it.
>>My two solutions are:
>>- I can use a vtkXMLWriter and modify my ITK program to make it
>>accept XML (with XMLReader).
>>- The other solution is to use vtkProbeFilter with a plane to
>>"interpolate" images at each plane position.
>>The second solution seems to be tedious since, I think, I will have
>>to place the plane, save the result of probing filter, move the
>>plane, save the result ... and so on.
>>The first one is pretty good but it would be great if someone tells me:
>>"but you can save your unstructuredgrid as imageData using ..... filter"
>>I think it's almost impossible, but never knows....
>>
>>Thanks,
>>
>>Laurent.
>>
>>_______________________________________________
>>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