Ok, seems that method SetOutputSpacingToDefault() do what I need<br><br><div class="gmail_quote">2012/7/4 Jonathan Ruiz Peinado <span dir="ltr">&lt;<a href="mailto:jonathan.ruiz3@gmail.com" target="_blank">jonathan.ruiz3@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If I wasn&#39;t wrong about spacing in first place, how can i set the spacing for an image reslice output? , seems that is 1.0 1.0 1.0   wahtever the input was.<div>
<br></div><div><div>vtkImageReslice reslice_rotation_z = new vtkImageReslice();                                    </div>
<div>reslice_rotation_z.SetInput( DicomStudio.dicomImage.getOutput());</div><div>reslice_rotation_z.SetInformationInput( DicomStudio.dicomImage.getOutput());</div><div>reslice_rotation_z.SetResliceAxes(transform_matrix_rotation_z);</div>

<div>reslice_rotation_z.SetInterpolationModeToLinear();</div><div>reslice_rotation_z.Update();</div><div><br></div><div>using vtk 5.6</div><div><br></div><div>input has spacing  0.3 0.3 0.5 nad out put has 1.0 1.0 1.0 </div>
<div><div class="h5">
<div><br><br><div class="gmail_quote">2012/7/4 Jonathan Ruiz Peinado <span dir="ltr">&lt;<a href="mailto:jonathan.ruiz3@gmail.com" target="_blank">jonathan.ruiz3@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi, It&#39;s a concept question, I tough that vtkImageData spacing was the real distance between each pixel or pixel size, so if spacing[0] is 0.5 the lenght of a pixel along the axis is 0.5 in units(mm).<div><br></div><div>


But After use vtkImageReslice, the output spaicng change to 1.0 1.0 1.0 where the input spacing was 0.3 0.3 0.5, I though it would chage the size of my image data, the real size, but seems that the image still having the same real size, so I got to be wrong about spacing.</div>


<div><br></div><div><br></div><div>Is not &quot;spacing&quot; the space between cells/points/pixels ?  </div><div>If I got spacing = 1.0 means that I got a cells/points/pixels each 1.0 units (mm) ?</div><div><br></div><div>


Thanks</div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br>