[vtkusers] Probe with boxwidget

laurent.paul at club-internet.fr laurent.paul at club-internet.fr
Fri Aug 12 05:43:13 EDT 2005


Hi users,

Few days ago, I was looking for a way to create an imageData from an unstructuredGrid (from a clipVolumefilter). With good advices, I learn that I could do that with a probe filter.
The unstructuredgrid comes from a volume clipped with a boxwidget.
Is it possible to use this boxwidget as geometric structure (probing source)?

This is why I'm asking this question:
The box clips the initial volume. This box goes outside the volume. Is the interpolator able to create points outside the volume putting them to "0"?

If yes, I need to get the origin, dimensions, spacing... to create an ImageData. And I don't know how to (GetTransform?, GetPlanes?).

Thanks for your answer.

Laurent.


----Message d'origine----
>Date: Tue, 09 Aug 2005 09:17:36 -0400
>A: laurent.paul at club-internet.fr, vtkusers at vtk.org
>De: Amy Squillacote <amy.squillacote at kitware.com>
>Sujet: Re: Re: [vtkusers] UnstructuredGrid to ImageData?
>
>Yes, create a volume (basically a cube, but the dimensions for the 3 
>axes do not have to be the same) using a vtkImageData. You'll need to 
>fill in the origin, extents, and spacing for the vtkImageData you're 
>using to probe your vtkUnstructuredGrid.
>
>- Amy
>
>At 09:10 AM 8/9/2005, laurent.paul at club-internet.fr wrote:
>
>>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