<div dir="ltr"><div>Dear Abhishek,</div><div> </div><div> The image was not clipped but it was translated according to your specified translation.</div><div>When you moved the image, parts of the image move to left and move down. The gray area </div>
<div>is the area where the original image was, and since it is empty, ResampleImageFilter assigns</div><div>a value (defined in the class as m_DefaultPixelValue) to it. I think it has default value of 0 and </div><div>I think your image is CT, so the padding area is gray. You can change its value using </div>
<div>SetDefaultPixelValue() to -1000 for CT, for example.</div><div> </div><div>Hope this help,</div><div> </div><div>Ja </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 10, 2013 at 11:41 PM, abhishek <span dir="ltr"><<a href="mailto:abhishek@meddiff.com" target="_blank">abhishek@meddiff.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Users, I am trying to translate an image using TranslationTransform +<br>
ResampleImageFilter. But I am not getting desired output.<br>
<br>
As you can see in below image; translation does occur but the image is<br>
clipped and translated area is covered with grey.<br>
<<a href="http://itk-insight-users.2283740.n2.nabble.com/file/n7584330/Translated.jpg" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/file/n7584330/Translated.jpg</a>><br>
<br>
I am using VTK for visualization. How can I fix this behavior, where entire<br>
image should be translated (no clipping)??<br>
<br>
Regards<br>
Abhishek.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/Image-is-clipped-when-Translated-tp7584330.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/Image-is-clipped-when-Translated-tp7584330.html</a><br>
Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" 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" target="_blank">http://www.kitware.com/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" target="_blank">http://www.kitware.com/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" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div>