[vtkusers] save a volume view as a MetaImage file

Stéphane CALANDE scalande at gmail.com
Thu Jan 15 06:55:32 EST 2009


Hi vtk users,


I'm doing volume rendering but I would like to save a view into a MetaImage
file.

I don't know exactly which input I have to give to the meta image writer.

Can you help me ?


Here is the code :

vtkFixedPointVolumeRayCastMapper * volumeMapper =
vtkFixedPointVolumeRayCastMapper ::New();
volumeMapper->SetBlendModeToMaximumIntensity();
volumeMapper->SetInput( reader->GetOutput()  );

vtkVolume* volume = vtkVolume::New();
volume->SetMapper( volumeMapper );

vtkMetaImageWriter * outputWriter = vtkMetaImageWriter::New();
outputWriter->SetFileName("test.mhd");
outputWriter->SetInput( ??? volume... ??? );
outputWriter->Write();



Thanks a lot,

Regards,



Stéphane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090115/51805548/attachment.htm>


More information about the vtkusers mailing list