David,<br><br>Thanks a lot for your quick and helpful replies. So if I use axial view, the output image slice is on x-y plane so that it&#39;s a 2D image, and the slice position is the origin of the image, correct? <br><br>
Janny<br><br><div><span class="gmail_quote">On 6/14/07, <b class="gmail_sendername">David Gobbi</b> &lt;<a href="mailto:dgobbi@atamai.com">dgobbi@atamai.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Janny,<br><br>If you are trying to display a single 2D slice, then the axial view is<br>the only view that will show an image.&nbsp;&nbsp;The other views will just<br>display a vanishingly thin line.<br><br>I have attached an image that goes a small ways towards explaining the
<br>reslice orientation matrices.&nbsp;&nbsp;The first two columns of the matrix<br>describe the orientation of the slice plane.&nbsp;&nbsp;The third column must<br>always be set to the cross product of the first two columns.&nbsp;&nbsp;The fourth<br>
column is set to a point that you want the slice plane to pass through.<br><br>The matrix is the geometrical transformation from the reslice output<br>image coordinate space to the input image coordinate space.&nbsp;&nbsp;Describing
<br>the columns in terms of slice orientation and position are just a useful<br>mathematical trick that can be used to fill in the matrix values.<br><br> - David<br><br><br><br>Janny Dong wrote:<br>&gt; Hi David,<br>&gt;<br>
&gt; Yours is probably the quickest reply I&#39;ve got so far through this<br>&gt; list. Thanks again! Now I know how vtkProbeFilter works. Looks like I<br>&gt; have to figure out a way to interpolate my data outside VTK. I am
<br>&gt; considering getting all the data available and then use<br>&gt; vtkImageReslice, since it provides several choices of interpolation<br>&gt; method.<br>&gt;<br>&gt; Could you explain a little bit of the Matrices for axial, coronal,
<br>&gt; sagittal, oblique view orientations part in your example code?<br>&gt;<br>&gt; //static double axialElements[16] = {<br>&gt;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1, 0, 0, 0,<br>&gt;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0, 1, 0, 0,<br>&gt;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0, 0, 1, 0,
<br>&gt;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0, 0, 0, 1 };<br>&gt;<br>&gt;&nbsp;&nbsp; //static double coronalElements[16] = {<br>&gt;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1, 0, 0, 0,<br>&gt;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0, 0, 1, 0,<br>&gt;<br>&gt;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0,-1, 0, 0,<br>&gt;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0, 0, 0, 1 };
<br>&gt;<br>&gt;&nbsp;&nbsp; static double sagittalElements[16] = {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0, 0,-1, 0,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1, 0, 0, 0,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0,-1, 0, 0,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0, 0, 0, 1 };<br>&gt;<br>&gt;&nbsp;&nbsp; //static double obliqueElements[16] = {
<br>&gt;<br>&gt;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1, 0, 0, 0,<br>&gt;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0, 0.866025, -0.5, 0,<br>&gt;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0, 0.5, 0.866025, 0,<br>&gt;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0, 0, 0, 1 };<br>&gt;<br>&gt;<br>&gt; I don&#39;t quite understand the four different view orientations. Last
<br>&gt; time I tried axial view and got the first image in my email. I got a<br>&gt; blank scene with other view orientations.<br>&gt;<br>&gt; Thanks,<br>&gt; Janny<br>&gt;<br>&gt;<br><br><br></blockquote></div><br>