[vtkusers] Montege 4X4 of some 3D Volume's slices

Eric E. Monson emonson at cs.duke.edu
Thu Jun 3 14:08:18 EDT 2010


Hey Daniela,

I guess I would suggest a different possibility. For each slice, you could set up a vtkImageReslice filter, and each one can go through a vtkImageMapToColors and then to a vtkImageActor. For each actor you can then use the SetPosition() method to arrange them in the 4x4 grid of images. Then, if you want to change the slices that are displayed, you just change the matrix that sets the "reslice axes" for that particular image. 

This method is taken directly from the ImageSlicing.cxx example in [vtk_source]/Examples/ImageProcessing/Cxx (or there are Python and Tcl examples of the same code in their respective subdirectories).

Talk to you later,
-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group


On Jun 3, 2010, at 1:57 PM, Darshan Pai wrote:

> Yes You can definately do that .
> You can start with vtkImageDataGeometryFilter and set the extent depending on what slice you want. The resulting polyData can be connected to the mapper . also add a lookuptable to the mapper and render.
> 
> Regards
> Darshan 
> 
> On Thu, Jun 3, 2010 at 1:06 PM, Daniela Sacchetto <danysunflower at hotmail.it> wrote:
> Hi everyone
> 
> I have a question for you.
> I'm working with a 3D rendered volume and I would like to do a ''montage'' 4x4 of some significative slices (as CT o RM traditional images...) in my vtkRenderWindow...
>  Is it possible? Is there any vtk method to do something similar?
> 
> Thank to everyone who will help me
> Daniela
> 
> Un mondo di personalizzazioni per Messenger, PC e cellulare, scaricale gratis!
> 
> _______________________________________________
> 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
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 
> _______________________________________________
> 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
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100603/44245097/attachment.htm>


More information about the vtkusers mailing list