[vtkusers] raycast questions
Nico Vermaas
vermaas at astron.nl
Tue Aug 19 02:35:50 EDT 2003
hi,
I am displaying my ImageData cube with a raycast function.
(1) Is there a way to write the result of that raycast back to a vtkImageData again? So that I get a new data cube with the max pixels projected on the outside?
(2) Is there a way to find out which x,y,z pixel was responsible for the maximum projection on the outside?
(3) Is there a way to 'shoot' a line through a cube and get back the highest value it encounters? (I thought the picking might work in that way, but it doesn't seem to work like this).
...
vtkVolumeRayCastMIPFunction *function = vtkVolumeRayCastMIPFunction::New();
vtkVolumeRayCastMapper *mapper = vtkVolumeRayCastMapper::New();
mapper->SetVolumeRayCastFunction(function);
mapper->SetInput(myImageData);
actorVolume->SetMapper(mapper);
...
Nico
====================================================
Nico Vermaas
ASTRON - Westerbork Synthesis Radio Telescope
Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands
tel: +31 593 598710
vermaas at astron.nl
====================================================
More information about the vtkusers
mailing list