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

Eric E. Monson emonson at cs.duke.edu
Mon Jun 7 06:35:01 EDT 2010


Hey Daniela,

I think the headsq/quarter.* data are some sort of raw image files (sorry I don't have my VTK book here -- it might say). All that matters is that vtkImageReader2 reads the individual images and puts them together into a vtkImageData regular grid at its output. So, if you already have a vtkImageData that you are using for volume rendering, you can use this wherever the code says Reader->GetOutput().

Talk to you later,
-Eric

On Jun 5, 2010, at 10:23 AM, Daniela Sacchetto wrote:

> Hi Eric
> I'm trying to follow also your suggestion to value if it is better or no than Darshan's one... But I have a first  problem: how can I modify that code to use it with my Image set? Because now I'm able to run it only with /usr/local/vtk/VTKData/Data/headsq/quarter and I don't understand what quarter.1-quarter.93 are...
> 
> Could you explain me?
> Thanks
> Daniela
> 
> Subject: Re: [vtkusers] Montege 4X4 of some 3D Volume's slices
> From: emonson at cs.duke.edu
> Date: Thu, 3 Jun 2010 14:08:18 -0400
> CC: danysunflower at hotmail.it; vtkusers at vtk.org
> To: darshanpai at gmail.com
> 
> 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 athttp://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 athttp://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
> 
> 
> Il tuo mondo MSN a portata di clic. Scarica IE8 per MSN

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


More information about the vtkusers mailing list