<pre>Hi Dean,<br><br>Thanks for reply. I tried the code but it seems to have no affect... Maybe I did something wrong here. I will try again tomorrow and will update the list of my progress.<br><br>Cheers and thanks.<br><br>
Anja<br><br><br>Hi Anja,<br><br>&gt;<i>Also, is there a way to change the way the image is displayed without<br></i>&gt;<i>resorting to changing the orientation of the reslicer. I have a lot of<br></i>&gt;<i>calculations which uses the IndexMatrix of the reslicer and after I invert
<br></i>&gt;<i>the Y axes, all those calculations are invalid because of the negative<br></i>&gt;<i>values.<br></i><br>Tell the camera of the vtkImageViewer to change its postion by 180 degrees<br>around the view up vector:
<br><br>p' = 2 f - p <br><br>p' is the new camera position, p is the camera's original position and<br>f is the camera's focal point.<br><br>vtkCamera* camera = renderer-&gt;GetActiveCamera();<br>double f[3];<br>camera-&gt;GetFocalPoint(f);
<br>double p[3];<br>camera-&gt;GetPosition(p);<br>p[0] = 2*f[0]-p[0];<br>p[1] = 2*f[1]-p[1];<br>p[2] = 2*f[2]-p[2];<br>camera-&gt;SetPosition(p);<br><br><br>Dean</pre>