<div dir="ltr">In general it is only going to be possible to avoid re-sampling when your transform is strictly rigid (i.e. the sampling lattice of the image can be rigidly transformed and remain regularly shaped).   Rescaling the intensity is a completely different issue, but can be used to avoid introducing extra quantization error, for example if you use floating point images in ways that will adjust the value range and then casting them to an integer type.<div><br></div><div>What are you trying to achieve?</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, 10 Feb 2016 at 16:57 suneeza hanif <<a href="mailto:suneezahanif02@gmail.com">suneezahanif02@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Gabriel,<div><br></div><div>I have same problem when I do re-sampling, image quality is not same as before. You mentioned that you changed the cast filter type to <span style="font-size:12.8px"> </span><span style="font-size:12.8px">RescaleIntensityImageFilter type but when I tried to change it I got an error. As </span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">RescaleIntensityImageFilter type already contains input and output image type and casting filter type also needs </span><span style="font-size:12.8px">input and output image type. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Can you please tell me in detail how did you manage to get the desired results. This would be of great help.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Best Regards,</span></div><div><span style="font-size:12.8px">Suneeza</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 26, 2016 at 6:57 PM, Gabriel A. Giménez <span dir="ltr"><<a href="mailto:gabrielgimenez85@gmail.com" target="_blank">gabrielgimenez85@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Dženan Zukić...., I changed the cast filter type to RescaleIntensityImageFilter and I got the expected result.<br><div><br></div><div>Best Regards...</div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">2016-01-10 16:22 GMT-03:00 Dženan Zukić <span dir="ltr"><<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Gabriel,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">you probably need to use interpolation method of a higher quality for the final resampling, i.e. <a href="http://www.itk.org/Doxygen/html/classitk_1_1WindowedSincInterpolateImageFunction.html" target="_blank">windowed sinc</a> instead of <a href="http://www.itk.org/Doxygen/html/classitk_1_1LinearInterpolateImageFunction.html" target="_blank">linear</a>.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, Jan 8, 2016 at 9:17 PM, Gabriel A. Giménez <span dir="ltr"><<a href="mailto:gabrielgimenez85@gmail.com" target="_blank">gabrielgimenez85@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi everyone...how are you ?<div><br></div><div>I'm going to point, to finish the registration process build the new transformed fixed image (based on the manual examples), but the quality of the generated image is degraded...how I can create a new image with the same quality as the original image? I just need to apply the transformation parameters.</div><div><br></div><div>Regards and thanks in advance,<span><font color="#888888"><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><font color="#666666" size="1"><i><b>Gabriel Alberto Giménez.</b></i></font></div></div>
</font></span></div></div>
<br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><div><div dir="ltr"><font color="#666666" size="1"><i><b>Gabriel Alberto Giménez.</b></i></font></div></div>
</font></span></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
</blockquote></div>