<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=""> Thank you for your reply. Attached is a snapshot of what is happening. The square needs to rotate and become a diamond. But after rotation, I get a chopped image. Ideally, I would just expect a larger sized matrix holding the larger image. So I'm not sure I
 understand how the 'content' could be missing.</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="">I couldn't experiment with SetExtrapolator as it is probably not available in the version of itk that I am using . Version 3.X.</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="">Are you suggesting that using Extrapolation, I would be able to address this specific problem ?</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="" 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=""><br></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=""><br></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=""><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 7:44 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">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] <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"><div style="" class="" id="yqtfd69966"><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 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</div><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><div style="" class="" id="yqtfd65234"><br style="" class="" clear="none">><br style="" class="" clear="none"></div><br style="" class=""><br style="" class=""></div>  </div> </div>  </div> </div></body></html>