<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 16, 2015 at 1:46 PM, Siavash Khallaghi <span dir="ltr"><<a href="mailto:siavashk@ece.ubc.ca" target="_blank">siavashk@ece.ubc.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Marcos,<br>
<br>
Can you compare the extent of the output of vtkImageReslice against its<br>
input? My gut feeling is that they are not equal.<br></blockquote><div><br></div><div>I suggest to use SetResliceAxes() (using transform->GetMatrix()) instead of</div><div>SetResliceTransform. Here is why:</div><div><br></div><div>When you use SetResliceAxes(), vtkImageReslice will transform the input</div><div>sampling (i.e. the extent and spacing) so that the output extent is rotated as</div><div>compared to the input extent.</div><div><br></div><div>Another option is to manually set the output extent, with reslice->SetOutputExtent().</div><div><br></div><div> - David</div></div></div></div>