Hi vtk users,<br><br><br>I'm doing volume rendering but I would like to save a view into a MetaImage file.<br><br>I don't know exactly which input I have to give to the meta image writer.<br><br>Can you help me ?<br>
<br><br>Here is the code :<br><br><span style="font-family: courier new,monospace;">vtkFixedPointVolumeRayCastMapper * volumeMapper = vtkFixedPointVolumeRayCastMapper ::New();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">volumeMapper->SetBlendModeToMaximumIntensity();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">volumeMapper->SetInput( reader->GetOutput() );</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><br>vtkVolume* volume = vtkVolume::New();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">volume->SetMapper( volumeMapper ); </span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">vtkMetaImageWriter * outputWriter = vtkMetaImageWriter::New();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">outputWriter->SetFileName("test.mhd");</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">outputWriter->SetInput( ??? volume... ??? );</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">outputWriter->Write();</span><br>
<br><br><br>Thanks a lot,<br><br>Regards,<br><br><br><br>Stéphane<br><span style="font-family: courier new,monospace;"></span>