[ITK Community] [Insight-users] Image is clipped when Translated??

Sureerat Reaungamornrat sureerat.r at gmail.com
Mon Nov 11 09:16:32 EST 2013


Dear Abhishek,

   The image was not clipped but it was translated according to your
specified translation.
When you moved the image, parts of the image move to left and move down.
The gray area
is the area where the original image was, and since it is
empty, ResampleImageFilter assigns
a value (defined in the class as m_DefaultPixelValue) to it. I think it has
default value of 0 and
I think your image is CT, so the padding area is gray. You can change its
value using
SetDefaultPixelValue() to -1000 for CT, for example.

Hope this help,

Ja


On Sun, Nov 10, 2013 at 11:41 PM, abhishek <abhishek at meddiff.com> wrote:

> Hello Users, I am trying to translate an image using TranslationTransform +
> ResampleImageFilter. But I am not getting desired output.
>
> As you can see in below image; translation does occur but the image is
> clipped and translated area is covered with grey.
> <
> http://itk-insight-users.2283740.n2.nabble.com/file/n7584330/Translated.jpg
> >
>
> I am using VTK for visualization. How can I fix this behavior, where entire
> image should be translated (no clipping)??
>
> Regards
> Abhishek.
>
>
>
> --
> View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/Image-is-clipped-when-Translated-tp7584330.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> 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://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20131111/6b7f533e/attachment.html>
-------------- next part --------------
_____________________________________
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://www.itk.org/mailman/listinfo/insight-users


More information about the Community mailing list