<!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> </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 3D image and you will
find the extents are not change in XY, YZ or XZ plane.</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Cheers,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">Yixun Liu</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </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
<<A href="mailto:anja.ende@googlemail.com">anja.ende@googlemail.com</A>>
wrote:<BR>><BR>> Ok, upon looking into the vtkImageMapper class, the
values are produced by<BR>> calling the GetWholeExtent() on the
input.<BR>><BR>> The values returned by it are:<BR>><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>> Now, what exactly is the difference between the different
extents... I<BR>> thought the extent would be the dimension of the
object...<BR>><BR>> Please enlighten me!<BR>><BR>> Thanks,<BR>>
Anja<BR>><BR>><BR>><BR>> On 29/08/06, Anja Ende <<A
href="mailto:anja.ende@googlemail.com">anja.ende@googlemail.com</A>>
wrote:<BR>> ><BR>> > Hi everyone,<BR>> ><BR>> > I have a
question about the vtkImageMapper class and the GetWholeZMax()<BR>> >
function.<BR>> ><BR>> > I have an input volume of the following
dimensions:<BR>> ><BR>> > x = 256 .<BR>> > y = 256<BR>>
> z = 120.<BR>> ><BR>> > When I use the vtkImageViewer to display
the data in the X, Y plane it<BR>> > returns 120 as the number of Z slices
available for display.<BR>> ><BR>> > However, in the YZ and the XZ
plane the number of Z slices is 199 (200).<BR>> > I actually thought it
should be 255. I was wondering if someone can explain<BR>> > to me how
exactly this calculation is done...<BR>> ><BR>> > Thanks,<BR>>
><BR>> > Anja.<BR>> ><BR></DIV></FONT></BODY></HTML>