<br><div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>are you sure you have to use yaw ? In an aircraft yaw means that if you
<br>fly from east to west after yaw(180) you fly from west to east. So in<br>your case you can not see the image because it is behind your camera.</blockquote><div><br>I see, Yaw is not the appropiate method because changes the focal point and I want to change the position of the camera.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">What about mirroring your camera-position on the other side of your<br>image ? This would give you a change in left/right (if this is your
<br>intention).</blockquote><div><br>Is just what I want, a mirror effect <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">When you roll(180) then you got a left/right AND upside/down flip.
</blockquote><div><br>You're wrong, with Roll, you rotate the image by the Z axis. With this you get left/right and upside/down flipped too , I only want to flip horizontally (left becomes right and viceversa) but up and down remains the same.
<br><br></div><br>I tried with Azimuth that does something similar to Yaw but about the position of the camera, not the focal point, the problem is if I move the image actor this movement is also mirrored, so I need to take into account another parameters ( position, focal point, translation... )
<br><br>I want the same effect as if I rotate the image actor with this sample code<br><br>imageActor->SetOrigin( imageActor->GetCenter() );<br>imageActor->RotateY( 180 ) ;<br><br>(assuming we are on axial view)<br>
<br>but I want to do the same effect with the camera.<br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hth,<br>Tom<br><br>Jesús Spínola wrote:
<br>> Hello,<br>><br>> I'm manipulating the camera of vtkImageViewer2 to flip my image. One<br>> of the things I want to do is rotate the camera to see the image<br>> flipped. For this I used the method Yaw(180).
<br>> After applying the Yaw(180) the image disappears. If I apply Yaw(180)<br>> again, the image appears again in the original orientation.<br>><br>> If after Yaw(180) I reset the camera with vtkRenderer::ResetCamera()
<br>> the image gets flipped as I want, but I get other unpleasant effects,<br>> because of the reset, because the camera is positioned on the center,<br>> and I want to keep other transformations that I did before the flip,
<br>> like rotations, pan, etc<br>><br>> Could someone tell me which things of the camera I need to update to<br>> see the image flipped after the Yaw?<br>><br>> Thanks!<br><br><br>_______________________________________________
<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br>