[vtkusers] Render RGB-D image in VTK

Alykhan Tejani alykhan.tejani06 at imperial.ac.uk
Mon Jul 15 12:30:57 EDT 2013


On 15/07/13 16:07, alykhantejani wrote:
> On 15/07/13 16:06, David Doria-2-3 [via VTK] wrote:
>> On Mon, Jul 15, 2013 at 10:14 AM, alykhantejani
>> <[hidden email] </user/SendEmail.jtp?type=node&node=5721968&i=0>> wrote:
>> > I have a mesh model (.ply file) and I have rendered it with VTK and 
>> changed
>> > the camera viewpoint.
>> >
>> > From the new camera viewpoint how can I render an RGB and a depth 
>> image? I
>> > think this might be raytracing, but not sure
>>
>>
>> Is this what you're looking for?
>>
>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/ZBuffer
>>
>> David
>> _______________________________________________
>> 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
>>
>>
>> ------------------------------------------------------------------------
>> If you reply to this email, your message will be added to the 
>> discussion below:
>> http://vtk.1045678.n5.nabble.com/Render-RGB-D-image-in-VTK-tp5721967p5721968.html 
>>
>> To unsubscribe from Render RGB-D image in VTK, click here.
>> NAML 
>> <http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> 
>>
> Hi,
>
> Thanks. yes this look like what I'm looking for, however the code 
> shown gives me a black image, how can I render the depth image as shown
>
> ------------------------------------------------------------------------
> View this message in context: Re: Render RGB-D image in VTK 
> <http://vtk.1045678.n5.nabble.com/Render-RGB-D-image-in-VTK-tp5721967p5721969.html>
> Sent from the VTK - Users mailing list archive 
> <http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html> 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

This code in the example only gives me values between 0 and -255, 
meaning the z buffer is from [0,1] how can i convert this to actual depth?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130715/9f488955/attachment.htm>


More information about the vtkusers mailing list