[vtkusers] how to access 3D volume

Michnay Balázs michnay at freemail.hu
Mon Oct 17 04:31:54 EDT 2005


Dear Ravi,

Here's how you can access a slice of a volume:

vtkExtractVOI *sliceExtractor = vtkExtractVOI::New();
sliceExtractor->SetInput(volume);
sliceExtractor->SetVOI
(xmin,xmax,ymin,ymax,frameNumber,frameNumber);

where both xmin and ymin should be 0, xmax and ymax should be the 
size of the frame.
frameNumber is the number of frame you'd like to extract.

The extracted image data can then be accessed by calling:

sliceExtractor->GetOutput();

Best of all,

 Michnay

_____________________________________________________________________________________
Ingyen mozi szupersztárokkal - csak három napig! Kódolatlan napok a T-Online Tékában!
www.t-online.hu





More information about the vtkusers mailing list