<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<div class="moz-cite-prefix">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<br>
<br>
<br>
On 02/08/13 17:48, Bill Lorensen [via VTK] wrote:<br>
</div>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'
cite="mid:CADZJ4hN=jMg-pFGTtq3RUL2sB+FEcPZVPvbZKtXJU=oipWOHvg@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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 moz-do-not-send="true"
href="http://www.pointclouds.org/" target="_top" rel="nofollow" link="external">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 class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Aug 2, 2013 at 12:14 PM,
alykhantejani <span dir="ltr"><<a moz-do-not-send="true"
href="/user/SendEmail.jtp?type=node&node=5722399&i=0"
target="_top" rel="nofollow" link="external">[hidden
email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' 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 moz-do-not-send="true"
href="http://vtk.1045678.n5.nabble.com/Set-VTKCamera-intrinsics-tp5722396.html"
target="_blank" rel="nofollow" link="external">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 moz-do-not-send="true"
href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank" rel="nofollow" link="external">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a
moz-do-not-send="true"
href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" rel="nofollow" link="external">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.vtk.org/mailman/listinfo/vtkusers"
target="_blank" rel="nofollow" link="external">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 class="moz-txt-link-abbreviated" href="http://www.kitware.com" target="_top" rel="nofollow" link="external">www.kitware.com</a>
<br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_top" rel="nofollow" link="external">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a
moz-do-not-send="true" href="http://www.vtk.org/Wiki/VTK_FAQ"
target="_top" rel="nofollow" link="external">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:
<br>
<a moz-do-not-send="true"
href="http://www.vtk.org/mailman/listinfo/vtkusers"
target="_top" rel="nofollow" link="external">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<br>
<hr color="#cccccc" noshade="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 moz-do-not-send="true"
href="http://vtk.1045678.n5.nabble.com/Set-VTKCamera-intrinsics-tp5722396p5722399.html" target="_top" rel="nofollow" link="external">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
moz-do-not-send="true"
href="" target="_top" rel="nofollow" link="external">click
here</a>.<br>
<a moz-do-not-send="true"
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" target="_top" link="external">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">Re: Set VTKCamera intrinsics</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>