<div dir="ltr">Check out the following example: <a href="http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/ScaleTransform">http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/ScaleTransform</a></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Oct 16, 2013 at 9:10 AM, Vaaksiainen <span dir="ltr"><<a href="mailto:vaaksiainen@gmail.com" target="_blank">vaaksiainen@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">Hi folks,<br><br>itk::ResampleImageFilter requires size being set before Update() so far that I've understood it.<br><br>That being said, I'd wish to implement resize image filter (derivative for before mentioned) which samples the image based on scaling parameter relative to its input size e.g.<br>
<br>newWidth = scaling * oldWidth<br><br>which I figure out at GenerateData() and yet, I'd wish to be able to put this filter in the pipeline not knowing the size of the input image, e.g.<br><br>Reader -> Filter#1 -> ResampleImageFilterEx -> Filter#2 -> Writer<br>
<br>How PropagateRequestedRegion() works and how its implemented in itk::ResampleImageFilter I'm not sure if I can do this at all.<br><br>Please, any advice?<br><br>Best,<br>-Vaaksiainen<br><br><br><br><br></div>
<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>
<br></blockquote></div><br></div>