Hi vtk users,<br><br><br>I&#39;m doing volume rendering but I would like to save a view into a MetaImage file.<br><br>I don&#39;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 =&nbsp;&nbsp;&nbsp; vtkFixedPointVolumeRayCastMapper ::New();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">volumeMapper-&gt;SetBlendModeToMaximumIntensity();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">volumeMapper-&gt;SetInput( reader-&gt;GetOutput()&nbsp; );</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-&gt;SetMapper( volumeMapper );&nbsp;&nbsp; </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-&gt;SetFileName(&quot;test.mhd&quot;);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">outputWriter-&gt;SetInput( ??? volume... ??? );</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">outputWriter-&gt;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>