<div style="text-align:left">Hello, </div><div style="text-align:left">I would try use vtkWindowToImageFilter to make screenshot of depth map. Here is an example <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/Screenshot" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/Screenshot</a> </div>
<div style="text-align:left"><br></div><div style="text-align:left">Instead of </div><div style="text-align:left"># <span style="background-color:rgb(255,255,255);font-size:11px;line-height:1.2em">windowToImageFilter</span><span class="sy2" style="font-size:11px;line-height:1.2em;color:rgb(0,0,64)">-</span><span class="sy1" style="font-size:11px;line-height:1.2em;color:rgb(0,0,128)">></span><span style="background-color:rgb(255,255,255);font-size:11px;line-height:1.2em">SetInputBufferTypeToRGBA</span><span class="br0" style="font-size:11px;line-height:1.2em;color:rgb(0,128,0)">(</span><span class="br0" style="font-size:11px;line-height:1.2em;color:rgb(0,128,0)">)</span><span class="br0" style="font-size:11px;line-height:1.2em"><font color="#008080">;</font></span></div>
<div style="text-align:left">try </div><div style="text-align:left"># <span style="background-color:rgb(255,255,255);font-size:11px;line-height:1.2em">windowToImageFilte<font color="#000040">r->SetInputBufferTypeToZBuffer();</font></span></div>
<div style="text-align:left"><span style="background-color:rgb(255,255,255);font-size:11px;line-height:1.2em"><font color="#000040"><br></font></span></div><div style="text-align:left">I am new in vtk, this is only idea.</div>
<div style="text-align:left"><br></div><div style="text-align:left">J.</div><div><div><br></div><div><br><div class="gmail_quote">
On 7 May 2012 14:45, Wenlong <span dir="ltr"><<a href="mailto:scc.wwl@gmail.com" target="_blank">scc.wwl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, Jana,<br>
<br>
Thank you for your reply.<br>
<br>
No, I don't want to color my input model. I only need the depth information<br>
visualized. The intensity of a pixel varies as the depth changes at<br>
corresponding point on my model surface. Thus the pixel will become darker<br>
or brighter.<br>
<br>
To have an idea of how it looks like, you can google it.<br>
<br>
Best wishes<br>
Wenlong<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Build-depth-map-of-a-3D-model-tp5689116p5690963.html" target="_blank">http://vtk.1045678.n5.nabble.com/Build-depth-map-of-a-3D-model-tp5689116p5690963.html</a><br>
<div><div>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>
</div></div></blockquote></div><br></div></div>