Another observation:<br><br>When I have the slicer working with the whole volume (output dimensionality 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 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 it returns the correct slice.<br><br>I am wondering why this extent should be different when working with the whole volume.... Is it taking the spacing into account and returning the 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><div><span class="gmail_quote">On 29/08/06, <b class="gmail_sendername">Anja Ende</b> &lt;<a href="mailto:anja.ende@googlemail.com">
anja.ende@googlemail.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;"><div>Ok, upon looking into the vtkImageMapper class, the values are produced by 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 thought the extent would be the dimension of the object...<br><br>Please enlighten me!<br><br>Thanks,<br></div><div><span class="sg">Anja</span>
</div><div><span class="e" id="q_10d5984dfda77d0c_2"><br><br><br><div><span class="gmail_quote">
On 29/08/06, <b class="gmail_sendername">Anja Ende</b> &lt;<a href="mailto:anja.ende@googlemail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">anja.ende@googlemail.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;">

<div>Hi everyone,<br><br>I have a question about the vtkImageMapper class and the GetWholeZMax() 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 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). I actually thought it should be 255. I was wondering if someone can explain to me how exactly this calculation is done...<br><br>Thanks,<br>

</div><div><span>
<br>Anja.<br>

</span></div></blockquote></div><br>

</span></div></blockquote></div><br>