[Insight-users] Image Scaling

Dan Mueller d.mueller at qut.edu.au
Tue May 15 19:46:45 EDT 2007


Hi Himadri,

Not only does ITK allow for "zooming", but it provides a mechanism for 
generic geometric transformations.

Please read about the ResampleImageFilter in the ITK Software Guide 
(around section 6.9.4):
    http://www.itk.org/ItkSoftwareGuide.pdf

An appropriate transform for your particular problem is either the 
ScaleTransform or the AffineTransform. The ResampleImageFilter also 
expects an image interpolator, some common options are 
NearestNeighborInterpolateImageFunction, or 
LinearInterpolateImageFunction. See the image interpolators group in the 
documentation for more options: 
http://www.itk.org/Doxygen/html/group__ImageInterpolators.html

HTH

Cheers, Dan


Himadri Sarkar wrote:
> Hello Insight Users,
>
> Is there any image scaling example in ITK by which jpeg images can be 
> zoomed in or out or their dimentions imcreased or decreased.
>
> Please reply soon
>
> Thanks
>
> -- 
> Himadri Sarkar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070516/6e3781bf/attachment.html


More information about the Insight-users mailing list