<div dir="ltr">Yes, but the method is SetViewAngle.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 2, 2013 at 12:52 PM, alykhantejani <span dir="ltr"><<a href="mailto:alykhan.tejani06@imperial.ac.uk" target="_blank">alykhan.tejani06@imperial.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I know we can set the viewing angle
with vtkCamera::SetViewingAngle and also the focal length can then
be determined from this angle and the image dimensions.
Additionally the principle point can be worked out from the image
dimensions. So does the vtkCamera make use of the viewing angle?<br>
<br>
Thanks<div class="im"><br>
<br>
<br>
On 02/08/13 17:48, Bill Lorensen [via VTK] wrote:<br>
</div></div>
<blockquote style="border-left:2px solid #cccccc;padding:0 1em" type="cite"><div class="im">
<div dir="ltr">
<div>It would be great to have a vtkCalibratedCamera (or
something) that would take the cameras intrinsic parameters.<br>
<br>
</div>
The Point Cloud Library (PCL) <a href="http://www.pointclouds.org/" rel="nofollow" link="external" target="_blank">http://www.pointclouds.org/</a>
uses VTK for rendering. PCL may already have such a beast or at
least a conversion from intrinsics to vtkCamera.<br>
<br>
<br>
</div>
</div><div><div class="h5"><div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Aug 2, 2013 at 12:14 PM,
alykhantejani <span dir="ltr"><<a href="http://user/SendEmail.jtp?type=node&node=5722399&i=0" rel="nofollow" link="external" target="_blank">[hidden
email]</a>></span> wrote:<br>
<blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote">I am trying to render views of a 3D
mesh in VTK, I am doing the following:<br>
<br>
<br>
vtkSmartPointer<vtkRenderWindow> render_win =<br>
vtkSmartPointer<vtkRenderWindow>::New();<br>
vtkSmartPointer<vtkRenderer> renderer =<br>
vtkSmartPointer<vtkRenderer>::New();<br>
<br>
render_win->AddRenderer(renderer);<br>
render_win->SetSize(640, 480);<br>
<br>
vtkSmartPointer<vtkCamera> cam =
vtkSmartPointer<vtkCamera>::New();<br>
<br>
cam->SetPosition(50, 50, 50);<br>
cam->SetFocalPoint(0, 0, 0);<br>
cam->SetViewUp(0, 1, 0);<br>
cam->Modified();<br>
<br>
vtkSmartPointer<vtkActor> actor_view =
vtkSmartPointer<vtkActor>::New();<br>
<br>
actor_view->SetMapper(mapper);<br>
renderer->SetActiveCamera(cam);<br>
renderer->AddActor(actor_view);<br>
<br>
render_win->Render();<br>
<br>
I am trying to simulate a rendering from a calibrated
Kinect, for which I<br>
know the intrinsic parameters. How can I set the intrinsic
parameters (focal<br>
length and principle point) to the vtkCamera.<br>
<br>
I wish to do this so that the 2d pixel - 3d camera
coordinate would be the<br>
same as if the image were taken from a kinect.<br>
<br>
Thanks<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Set-VTKCamera-intrinsics-tp5722396.html" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/Set-VTKCamera-intrinsics-tp5722396.html</a><br>
Sent from the VTK - Users mailing list archive at
Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="nofollow" link="external" 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="nofollow" link="external" 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="nofollow" link="external" 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" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Unpaid intern in BillsBasement at noware dot com<br>
</div>
<br>
_______________________________________________
<br>
Powered by <a href="http://www.kitware.com" rel="nofollow" link="external" 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="nofollow" link="external" 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="nofollow" link="external" 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" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<br>
</div></div><hr color="#cccccc" noshade size="1">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
<div style="font-weight:bold">If you reply to this email, your
message will be added to the discussion below:</div>
<a href="http://vtk.1045678.n5.nabble.com/Set-VTKCamera-intrinsics-tp5722396p5722399.html" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/Set-VTKCamera-intrinsics-tp5722396p5722399.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To unsubscribe from Set VTKCamera intrinsics, <a rel="nofollow" link="external">click
here</a>.<br>
<a href="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" rel="nofollow" style="font:9px serif" link="external" target="_blank">NAML</a> </div>
</blockquote>
<br>
        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Set-VTKCamera-intrinsics-tp5722396p5722400.html" target="_blank">Re: Set VTKCamera intrinsics</a><div class="HOEnZb"><div class="h5"><br>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" target="_blank">VTK - Users mailing list archive</a> at Nabble.com.<br></div></div><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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>