<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div style="" class=""><span style="" class="">Hi Matt,</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""><span style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class=""><span style="" class="">You were right. </span> Thanks again. Turns out my input indeed was cropped out by another process !. I had experimented with sizes and origins too, but if input is garbage ....</span></div><div class="" style="color: rgb(0, 0,
0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br><span style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">regards,</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">Emma<br></span></div><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue,
Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="" class="" dir="ltr"> <font style="" class="" size="2" face="Arial"> On Wednesday, September 24, 2014 10:39 AM, Matt McCormick <matt.mccormick@kitware.com> wrote:<br style="" class=""> </font> </div> <br style="" class=""><br style="" class=""> <div style="" class="">Hi Emma,<br style="" class="" clear="none"><br style="" class="" clear="none">The resampled image will be sampled at the locations specified for the<br style="" class="" clear="none">output image by setting the desired parameters on ResampleImageFilter.<br style="" class="" clear="none">It does not does resize based on the transformation. To get a<br style="" class="" clear="none">different output image domain, use SetOutputOrigin() and SetSize() on<br style="" class="" clear="none">the ResampleImageFilter.<br style="" class="" clear="none"><br style="" class="" clear="none">Hope this helps,<br style=""
class="" clear="none">Matt<br style="" class="" clear="none"><div style="" class="" id="yqtfd72381"><br style="" class="" clear="none">On Wed, Sep 24, 2014 at 1:06 PM, Emma Ryan <<a style="" class="" shape="rect" ymailto="mailto:eryanvtk@yahoo.com" href="mailto:eryanvtk@yahoo.com">eryanvtk@yahoo.com</a>> wrote:<br style="" class="" clear="none">> HI Matt,<br style="" class="" clear="none">><br style="" class="" clear="none">> Thank you for your reply. Attached is a snapshot of what is happening. The<br style="" class="" clear="none">> square needs to rotate and become a diamond. But after rotation, I get a<br style="" class="" clear="none">> chopped image. Ideally, I would just expect a larger sized matrix holding<br style="" class="" clear="none">> the larger image. So I'm not sure I understand how the 'content' could be<br style="" class="" clear="none">> missing.<br style="" class="" clear="none">><br style=""
class="" clear="none">> I couldn't experiment with SetExtrapolator as it is probably not available<br style="" class="" clear="none">> in the version of itk that I am using . Version 3.X.<br style="" class="" clear="none">><br style="" class="" clear="none">> Are you suggesting that using Extrapolation, I would be able to address this<br style="" class="" clear="none">> specific problem ?<br style="" class="" clear="none">><br style="" class="" clear="none">> regards,<br style="" class="" clear="none">> Emma<br style="" class="" clear="none">><br style="" class="" clear="none">><br style="" class="" clear="none">><br style="" class="" clear="none">><br style="" class="" clear="none">><br style="" class="" clear="none">><br style="" class="" clear="none">><br style="" class="" clear="none">> On Wednesday, September 24, 2014 7:44 AM, Matt McCormick<br style="" class="" clear="none">> <<a style=""
class="" shape="rect" ymailto="mailto:matt.mccormick@kitware.com" href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>> wrote:<br style="" class="" clear="none">><br style="" class="" clear="none">><br style="" class="" clear="none">> Hi Emma,<br style="" class="" clear="none">><br style="" class="" clear="none">> If there is no content to resample from after the transformation, then<br style="" class="" clear="none">> a default pixel value is used. To use extrapolation instead, call<br style="" class="" clear="none">> SetExtrapolator() [1] on the ResampleImageFilter.<br style="" class="" clear="none">><br style="" class="" clear="none">> HTH,<br style="" class="" clear="none">> Matt<br style="" class="" clear="none">><br style="" class="" clear="none">> [1]<br style="" class="" clear="none">> <a style="" class="" shape="rect"
href="http://www.itk.org/Insight/Doxygen/html/classitk_1_1ResampleImageFilter.html#a89d912b5608fbe73a9a2ca0ebcfebb69" target="_blank">http://www.itk.org/Insight/Doxygen/html/classitk_1_1ResampleImageFilter.html#a89d912b5608fbe73a9a2ca0ebcfebb69</a><br style="" class="" clear="none">><br style="" class="" clear="none">> On Wed, Sep 24, 2014 at 7:27 AM, Emma Ryan via Insight-users<br style="" class="" clear="none">> <<a style="" class="" shape="rect" ymailto="mailto:insight-users@itk.org" href="mailto:insight-users@itk.org">insight-users@itk.org</a>> wrote:<br style="" class="" clear="none">>> Hi,<br style="" class="" clear="none">>><br style="" class="" clear="none">>> I would like to rotate an input mage by a few degrees. I was able to<br style="" class="" clear="none">>> easily do this using rigid transforms available in itk. But the output<br style="" class="" clear="none">>> image<br style=""
class="" clear="none">>> is cropped. The extent of cropping is directly related to the angle of<br style="" class="" clear="none">>> rotation. How can one disallow this kind of cropping ?<br style="" class="" clear="none">>><br style="" class="" clear="none">>> Thank you for your help.<br style="" class="" clear="none">>> regards,<br style="" class="" clear="none">>> Emma<br style="" class="" clear="none">><br style="" class="" clear="none">>><br style="" class="" clear="none">>> _____________________________________<br style="" class="" clear="none">>> Powered by www.kitware.com<br style="" class="" clear="none">>><br style="" class="" clear="none">>> Visit other Kitware open-source projects at<br style="" class="" clear="none">>> <a style="" class="" shape="rect" href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br style="" class="" clear="none">>><br style="" class="" clear="none">>> Kitware offers ITK Training Courses, for more information visit:<br style="" class="" clear="none">>> <a style="" class="" shape="rect" href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br style="" class="" clear="none">>><br style="" class="" clear="none">>> Please keep messages on-topic and check the ITK FAQ at:<br style="" class="" clear="none">>> <a style="" class="" shape="rect" href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br style="" class="" clear="none">>><br style="" class="" clear="none">>> Follow this link to subscribe/unsubscribe:<br style="" class="" clear="none">>> <a style="" class="" shape="rect"
href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br style="" class="" clear="none">><br style="" class="" clear="none">>><br style="" class="" clear="none">><br style="" class="" clear="none">><br style="" class="" clear="none"></div><br style="" class=""><br style="" class=""></div> </div> </div> </div> </div></body></html>