<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Bookman Old Style">Hi,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">To display the image in 2D plane the spacing 
should be taken into account to ensure a correct ratio in each direction. For 
example, you can set the same spacing to the&nbsp;3D image&nbsp;and you will 
find the extents&nbsp;are not&nbsp;change in XY, YZ or XZ plane.</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">Cheers,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">Yixun Liu</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">Another observation:<BR><BR>When I have the 
slicer working with the whole volume (output dimensionality<BR>3) then the whole 
extent is returned as follows:<BR>XY: 0, 255:0, 255:0, 119<BR>YZ: 0, 199:0, 
186:0, 199<BR>XZ: 0, 199:0, 186:0, 199<BR><BR>However, when I am working in the 
2D mode (output dimensionality 2) then, I<BR>have the following domain for the 
data:<BR><BR>XY: 0, 255:0, 255:0, 119<BR>YZ: 0, 255:0, 119:0, 255<BR>XZ: 0, 
255:0, 119:0, 255<BR><BR>I can verify this by changing the SetResliceAxesOrigin 
of the reslicer and<BR>it returns the correct slice.<BR><BR>I am wondering why 
this extent should be different when working with the<BR>whole volume.... Is it 
taking the spacing into account and returning the<BR>real world coordinates. 
Does not seem so though...<BR><BR>Any explanation would be really 
appreciated.<BR><BR>Cheers,<BR><BR>Anja<BR><BR><BR><BR>On 29/08/06, Anja Ende 
&lt;<A href="mailto:anja.ende@googlemail.com">anja.ende@googlemail.com</A>&gt; 
wrote:<BR>&gt;<BR>&gt; Ok, upon looking into the vtkImageMapper class, the 
values are produced by<BR>&gt; calling the GetWholeExtent() on the 
input.<BR>&gt;<BR>&gt; The values returned by it are:<BR>&gt;<BR>&gt; XY: 0, 
255:0, 255:0, 119<BR>&gt; YZ: 0, 199:0, 186:0, 199<BR>&gt; XZ: 0, 199:0, 186:0, 
199<BR>&gt;<BR>&gt; Now, what exactly is the difference between the different 
extents... I<BR>&gt; thought the extent would be the dimension of the 
object...<BR>&gt;<BR>&gt; Please enlighten me!<BR>&gt;<BR>&gt; Thanks,<BR>&gt; 
Anja<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; On 29/08/06, Anja Ende &lt;<A 
href="mailto:anja.ende@googlemail.com">anja.ende@googlemail.com</A>&gt; 
wrote:<BR>&gt; &gt;<BR>&gt; &gt; Hi everyone,<BR>&gt; &gt;<BR>&gt; &gt; I have a 
question about the vtkImageMapper class and the GetWholeZMax()<BR>&gt; &gt; 
function.<BR>&gt; &gt;<BR>&gt; &gt; I have an input volume of the following 
dimensions:<BR>&gt; &gt;<BR>&gt; &gt; x = 256 .<BR>&gt; &gt; y = 256<BR>&gt; 
&gt; z = 120.<BR>&gt; &gt;<BR>&gt; &gt; When I use the vtkImageViewer to display 
the data in the X, Y plane it<BR>&gt; &gt; returns 120 as the number of Z slices 
available for display.<BR>&gt; &gt;<BR>&gt; &gt; However, in the YZ and the XZ 
plane the number of Z slices is 199 (200).<BR>&gt; &gt; I actually thought it 
should be 255. I was wondering if someone can explain<BR>&gt; &gt; to me how 
exactly this calculation is done...<BR>&gt; &gt;<BR>&gt; &gt; Thanks,<BR>&gt; 
&gt;<BR>&gt; &gt; Anja.<BR>&gt; &gt;<BR></DIV></FONT></BODY></HTML>