<div dir="ltr"><div dir="ltr">Depending on settings, there are a few ways it can be computed. vtkCamera::ComputeProjectionTransform is the starting point for tracking down the specifics:<br><br><a href="https://github.com/Kitware/VTK/blob/master/Rendering/Core/vtkCamera.cxx#L1035-L1127">https://github.com/Kitware/VTK/blob/master/Rendering/Core/vtkCamera.cxx#L1035-L1127</a><br><br>HTH,<br>Allie</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 19, 2018 at 12:05 PM maskjp <<a href="mailto:jiangpengyiwu@gmail.com">jiangpengyiwu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I figure out the problem. When I use the vtkBMPReader, the output of this<br>
class is a 3 channel vtkImageData, but the vtkDepthImageToPointCloud only<br>
receive a 1 channel depth image. So We need to use vtkImageExtractComponents<br>
to get the first channel of the vtkBMPReader output.  <br>
<br>
But I still don't understand how vtk compute projection transform matrix.<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div>