[Community] [Insight-users] Resampling: defining the output size at 'runtime' (Update-time) relative to the input size

Vaaksiainen vaaksiainen at gmail.com
Wed Oct 16 10:10:19 EDT 2013


Hi folks,

itk::ResampleImageFilter requires size being set before Update() so far
that I've understood it.

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.

newWidth = scaling * oldWidth

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.

Reader -> Filter#1 -> ResampleImageFilterEx -> Filter#2 -> Writer

How PropagateRequestedRegion() works and how its implemented in
itk::ResampleImageFilter I'm not sure if I can do this at all.

Please, any advice?

Best,
-Vaaksiainen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20131016/68527c3d/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