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>Anja<br><br><br><div><span class="gmail_quote">
On 29/08/06, <b class="gmail_sendername">Anja Ende</b> <<a href="mailto:anja.ende@googlemail.com">anja.ende@googlemail.com</a>> 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 class="sg">
<br>Anja.<br>
</span></div></blockquote></div><br>