<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Sidharta,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">just changing the size of the output image should not affect its orientation. Can you share the code with comments which line you added to try changing the size?</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default"><font face="verdana, sans-serif">Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)</font></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 11, 2017 at 11:20 AM, sidharta <span dir="ltr"><<a href="mailto:sidharta.gupta93@gmail.com" target="_blank">sidharta.gupta93@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Dženan,<br>
<br>
First of all, thank you for all your help.<br>
<br>
So, from the previous posts I was able to resample the CBCT image so that it<br>
lies in the direction of the Trajectory. So far so good. Now, I am trying to<br>
extract only a part of the volume in this resampled image. So, I figure that<br>
since I already calculated the direction, I could just set the size of the<br>
output image to be what I want in the "ResampleImageFilter" and it should<br>
work fine. However, when I do this, the extracted volume is in a different<br>
direction than I assumed it to be. For example,<br>
<br>
<<a href="http://itk-users.7.n7.nabble.com/file/n38228/Capture.png" rel="noreferrer" target="_blank">http://itk-users.7.n7.nabble.<wbr>com/file/n38228/Capture.png</a>><br>
<br>
In the above image, I assumed the part of the volume that I extract is<br>
actually in the direction shown in the "Green" line, however I instead get<br>
the volume along the "Red" line. Why is this so? The direction I calculate<br>
for the "ResampleImageFilter" was essentially along the "Green" line.<br>
<br>
Additionally, what I am trying to do, is this not possible with the<br>
"ResampleImageFilter"? Do I need to extract the volume using the<br>
"ExtractImageFilter" instead?<br>
<span class=""><br>
Thank you for your time<br>
Sidharta<br>
<br>
<br>
<br>
</span>--<br>
View this message in context: <a href="http://itk-users.7.n7.nabble.com/Extract-slice-from-ResampleFilter-tp38074p38228.html" rel="noreferrer" target="_blank">http://itk-users.7.n7.nabble.<wbr>com/Extract-slice-from-<wbr>ResampleFilter-tp38074p38228.<wbr>html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the ITK - Users mailing list archive at Nabble.com.<br>
______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div>