[vtkusers] Build depth map of a 3D model

Jana Sefcikova neollie at gmail.com
Mon May 7 09:14:11 EDT 2012


Hello,
I would try use vtkWindowToImageFilter to make screenshot of depth map.
Here is an example
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/Screenshot

Instead of
# windowToImageFilter->SetInputBufferTypeToRGBA();
try
# windowToImageFilter->SetInputBufferTypeToZBuffer();

I am new in vtk, this is only idea.

J.


On 7 May 2012 14:45, Wenlong <scc.wwl at gmail.com> wrote:

> Hi, Jana,
>
> Thank you for your reply.
>
> No, I don't want to color my input model. I only need the depth information
> visualized. The intensity of a pixel varies as the depth changes at
> corresponding point on my model surface. Thus the pixel will become darker
> or brighter.
>
> To have an idea of how it looks like, you can google it.
>
> Best wishes
> Wenlong
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Build-depth-map-of-a-3D-model-tp5689116p5690963.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120507/7911599e/attachment.htm>


More information about the vtkusers mailing list