<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">&lt;<a href="mailto:alykhan.tejani06@imperial.ac.uk" target="_blank">alykhan.tejani06@imperial.ac.uk</a>&gt;</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">&lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=5722399&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden
              email]</a>&gt;</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&lt;vtkRenderWindow&gt; render_win =<br>
            vtkSmartPointer&lt;vtkRenderWindow&gt;::New();<br>
                vtkSmartPointer&lt;vtkRenderer&gt; renderer =<br>
            vtkSmartPointer&lt;vtkRenderer&gt;::New();<br>
            <br>
                render_win-&gt;AddRenderer(renderer);<br>
                render_win-&gt;SetSize(640, 480);<br>
            <br>
                vtkSmartPointer&lt;vtkCamera&gt; cam =
            vtkSmartPointer&lt;vtkCamera&gt;::New();<br>
            <br>
                cam-&gt;SetPosition(50, 50, 50);<br>
                cam-&gt;SetFocalPoint(0, 0, 0);<br>
                cam-&gt;SetViewUp(0, 1, 0);<br>
                cam-&gt;Modified();<br>
            <br>
                vtkSmartPointer&lt;vtkActor&gt; actor_view =
            vtkSmartPointer&lt;vtkActor&gt;::New();<br>
            <br>
                actor_view-&gt;SetMapper(mapper);<br>
                renderer-&gt;SetActiveCamera(cam);<br>
                renderer-&gt;AddActor(actor_view);<br>
            <br>
                render_win-&gt;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&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;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>