[vtkusers] [VTK] Clip volume rendered dataset
Jon Haitz Legarreta
jhlegarreta at vicomtech.org
Tue Jun 17 04:04:54 EDT 2014
already solved the issue.
Basically, once the vtkPlane and vtkClipVolume created, calling the
AddClippingPlane(plane) method of the vtkVolumeRayCastMapper object made
I finally used the vtkImplicitPlaneWidget class, and made the vtkClipVolume
object's output be its input.
Finally, it turned out that memory use did not rise dramatically using VTK
On 11 June 2014 13:24, Jon Haitz Legarreta <jhlegarreta at vicomtech.org>
> I was trying to build a scene where both surface and volume rendering are
> used, and the volume rendered dataset is cut thanks to a clipping plane.
> Although I guess this is perfectly possible with VTK, I was finding it a
> little bit complicated.
> Thus, I decided to try with Paraview. A screenshot of what I have in mind
> is attached.
> So based on the skull stripping contribution , I'd like to be able to
> load the original brainweb.mha dataset for that contribution, render the
> volume, then load the output of the segmentation, apply a contour filter,
> render the surface, and be able to apply a clipping plane (through the
> vtkImplicitPlaneWidget  or the vtkImplicitPlaneWidget2 ) to this last.
> Basically, I'm finding it difficult to apply the vtkImplicitPlaneWidget or
> vtkImplicitPlaneWidget2 to the volume rendered object (the wiki examples
>   act on PolyData types).
> Can anyone cast some light on this, please?
> Thank you,
> JON HAITZ
> P.S.: Although at this stage I'm not concerned with memory optimization,
> it looks like I'll need to, since for the brainweb dataset (~7 MB) and the
> corresponding skull stripping/brain segmentation (~10 MB) Paraview
> allocates between 6 and 10 GB of memory, with some peaks at 16 GB :-S. I
> don't know whether I'm missing some important information regarding this
>  http://www.insight-journal.org/browse/publication/859
>  http://www.vtk.org/doc/nightly/html/classvtkImplicitPlaneWidget.html
>  http://www.vtk.org/doc/nightly/html/classvtkImplicitPlaneWidget2.html
>  http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ImagePlaneWidget
>  http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ImplicitPlaneWidget2
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers