<div>i have the exatly desire as finsher has...</div>
<div>i am waiting for the answeer to...</div>
<div>best regards<br><br></div>
<div class="gmail_quote">2010/9/19 finsher <span dir="ltr">&lt;<a href="mailto:zhuyinghua01@gmail.com">zhuyinghua01@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi all,<br>I need to get the Maximum intensity projection(MIP) slices.<br>so I have a series of MR images. &nbsp;I use these series to do MIP(or volume<br>
render etc...). &nbsp;when MIP rendering completed &nbsp;I need to get the rendered<br>slices. if i use vtkResliceImage dor &nbsp;imageplanewidget s the input data is<br>the voxel raw data, i got the &nbsp;slices is the original image slices, not cut<br>
from MIP volume slices.<br>so could you help me how to get the correct slices?<br><br>best regards.<br><br>and below is my code :<br><br>//step 1: read raw image series data<br>vtkVolume16Reader* v16 = &nbsp;vtkVolume16Reader::New();<br>
v16-&gt;SetFilePrefix(&quot;d:\\aaa\\new\\a&quot;);<br>...<br>v16-&gt;Update();<br><br>//step.2: do MIP<br>vtkPiecewiseFunction *opacityTransferFunc = vtkPiecewiseFunction::New();<br>opacityTransferFunc-&gt;AddPoint(0.0, 0.0);<br>
...<br>vtkColorTransferFunction *colorTransferFunc =<br>vtkColorTransferFunction::New();<br>colorTransferFunc-&gt;AddRGBPoint(0.0, 0.0, 0.0, 0.0);<br>...<br>volumeProperty = vtkVolumeProperty::New();<br>volumeProperty-&gt;SetColor(colorTransferFunc);<br>
volumeProperty-&gt;SetScalarOpacity(opacityTransferFunc);<br><br>//step 3: set mip function and create volume data<br>vtkVolumeRayCastMIPFunction *mipFunc = vtkVolumeRayCastMIPFunction::New();<br>volumeMapper = vtkVolumeRayCastMapper::New();<br>
volumeMapper-&gt;SetVolumeRayCastFunction(mipFunc);<br>volumeMapper-&gt;SetInput(v16-&gt;GetOutput());<br>volume = vtkVolume::New();<br>volume-&gt;SetMapper(volumeMapper);<br>volume-&gt;SetProperty(volumeProperty);<br>volume-&gt;Update();<br>
<br>//step.4: renderer volume show rendered window<br>render-&gt;AddVolume(volume);<br>renderWindow-&gt;Render();<br>...<br><br>//setp.5: get MIP slices<br>vtkImagePlaneWidget* planeWidget = vtkImagePlaneWidget::New();<br>
...<br>planeWidget-&gt;SetInput(v16-&gt;GetOutput()); &lt;----i think this input data could<br>not be correct. but i don&#39;t know how ...<br><br>//step.6 display the slices<br>imageViewer2-&gt;SetInput(planeWidget-&gt;GetResliceOutput());<br>
renderWindowInteractor-&gt;Initialize();<br>imageViewer2-&gt;Render();<br>renderWindowInteractor-&gt;Start();<br>....<br>--<br>View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-to-Get-rendered-Volume-Slices-tp2845243p2845243.html" target="_blank">http://vtk.1045678.n5.nabble.com/How-to-Get-rendered-Volume-Slices-tp2845243p2845243.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>_______________________________________________<br>Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>陆阳<br>清华大学医学院生物医学工程系<br>Yang Lu<br>Department of Biomedical Engineering,<br>School of Medicine, Tsinghua University<br><br>