Hello David,<br><br>Thank you for answering my query. That was very kind of you.<br><br>I have one further question on a related note about the zooming itself. So, the interpolation. Does it take the 4 pixels around a pixel to do the interpolation. So, if I am to zoom by a factor of 2 (or 
0.5 as you mentioned in the VTK context), if the pixel does not lie on the border, does it take the&nbsp; pixels on the left, right, top and bottom to calculate the resulting interpolated pixel intensities.<br><br>Also, what happens to the pixels that lie on the corner ot the image borders?
<br><br>Thank you again for your help. I appreciate it sincerely.<br><br>Luc<br><br><div><span class="gmail_quote">On 12/21/06, <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 Luca,<br><br>You are correct about the interpolation part, but the spacing works
<br>opposite to the way you guessed.<br><br>If you want to zoom the image by a factor of 2.0, you should set the<br>OutputSpacing to half of the original image spacing.<br><br>A good way to explain it is like this.&nbsp;&nbsp;The OutputSpacing is the size of
<br>the output pixels.&nbsp;&nbsp;So, if you have an MRI image that covers a square<br>area of 256mm by 256mm, if the OutputSpacing is 1mm then the number of<br>pixels in the output image will be 256x256.&nbsp;&nbsp;If the OutputSpacing is<br>
0.5mm, the number of pixels will be 512x512.<br><br> - David<br><br><br><br>Luca Pamparana wrote:<br>&gt; Hi everyone,<br>&gt;<br>&gt; I was wondering what exactly the OutputSpacing parameters are doing to<br>&gt; the input image.
<br>&gt;<br>&gt; So, if I double the OutputSpacing in the x and y direction, I can<br>&gt; achieve a zoom of factor 2.0.<br>&gt;<br>&gt; However, what does it mean for the pixels in the output image? So, one<br>&gt; data pixel now takes 2 pixels in the x and y directions. How is the
<br>&gt; data for these pixels calculated? Does the slicer take the adjacent<br>&gt; pixel and interpolates based on the interpolation scheme selected?<br>&gt;<br>&gt; I know this is a very basic question but I will be grateful if someone
<br>&gt; can answer this.<br>&gt;<br>&gt; Thanks,<br>&gt;<br>&gt; Luc<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; This is the private VTK discussion list.
<br>&gt; Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br><br></blockquote></div><br>