<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You may want to look at the vtkImagePlaneWidget class and its
SetPlaneOrientation function.&nbsp; Using this function you could set the plane&#8217;s
normal to x, y or z axis (0, 1 and 2 respectively).<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Beau <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #91C0FF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif"'>From:</span></b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif"'>
vtkusers-bounces+beau.sapach=ualberta.ca@vtk.org
[mailto:vtkusers-bounces+beau.sapach=ualberta.ca@vtk.org] <b>On Behalf Of </b>Anja
Ende<br>
<b>Sent:</b> Monday, August 21, 2006 10:36 AM<br>
<b>To:</b> vtkusers<br>
<b>Subject:</b> [vtkusers] orthogonal slices through a volume<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Hi everyone,<br>
<br>
I know this question has been asked before but I could not find an answer that
could have helped me, so I am asking again.<br>
<br>
Well... I am trying to get the classic 3 orthogonal slices through a volume. I
know the vtkImageViewer2 provides this functionality but I cannot use that
component unfortunately. <br>
<br>
I was trying to use the vtkImageReslicer to get the XZ plane through the
volume. <br>
<br>
So, I tried setting up the matrix as follows:<br>
<br>
vtkImageReslice * slicer = vtkImageReslice::New();<br>
slicer-&gt;SetInput(imageChangeInformationP-&gt;GetOutput()); <br>
slicer-&gt;SetResliceAxesDirectionCosines(1, 0, 0, 0, 0, 1, 0, -1, 0);<br>
<br>
Is this matrix correct if I want to get the XZ plane out of the volume? I ask
because some of the slices in the beginning and end seem bogus. The
vtkImageViewer2 does not show them when I set the orientation to XZ in the vtk
viewer. <br>
<br>
Also, I noticed that the vtkImageViewer2 displays the volume nicely with
correct aspect ratio and all that... So, I tried using:<br>
<br>
slicer-&gt;SetOutputSpacing(1.0, 1.0, 1.0);<br>
<br>
This was shown in the example. However, this changes my extents and the number
of Z slices reduces. <br>
<br>
I was wondering if someone can help me determine the correct matrix for
extracting these planes.<br>
<br>
Thanks,<br>
<br>
Anja <o:p></o:p></p>

</div>

</body>

</html>