[ITK-users] Image Rotation while preserving image

Emma Ryan eryanvtk at yahoo.com
Wed Sep 24 13:06:26 EDT 2014


HI Matt,

 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.

I couldn't experiment with SetExtrapolator as it is probably not available in the version of itk that I am using . Version 3.X.

Are you suggesting that using Extrapolation, I would be able to address this specific problem ?

regards,
Emma








On Wednesday, September 24, 2014 7:44 AM, Matt McCormick <matt.mccormick at kitware.com> wrote:
 


Hi Emma,

If there is no content to resample from after the transformation, then
a default pixel value is used.  To use extrapolation instead, call
SetExtrapolator() [1] on the ResampleImageFilter.

HTH,
Matt

[1] http://www.itk.org/Insight/Doxygen/html/classitk_1_1ResampleImageFilter.html#a89d912b5608fbe73a9a2ca0ebcfebb69


On Wed, Sep 24, 2014 at 7:27 AM, Emma Ryan via Insight-users
<insight-users at itk.org> wrote:
> Hi,
>
>   I would like to rotate an input mage by a few degrees. I was able to
> easily do this using rigid transforms available in itk. But the output image
> is cropped. The extent of cropping is directly related to the angle of
> rotation. How can one disallow this kind of cropping ?
>
> Thank you for your help.
> regards,
> Emma
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20140924/72d637ea/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rotation.jpg
Type: image/jpeg
Size: 6288 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20140924/72d637ea/attachment-0001.jpg>


More information about the Insight-users mailing list