[Insight-users] Resampling without Interpolation

Emmanuel Christophe emmanuel.christophe at gmail.com
Fri Apr 9 10:33:00 EDT 2010


Hi Himanshu,

You might want to have a look at the otbSubsampleImageFilter:
http://hg.orfeo-toolbox.org/OTB/file/1030810074c8/Code/MultiScale/otbSubsampleImageFilter.h
http://hg.orfeo-toolbox.org/OTB/file/1030810074c8/Code/MultiScale/otbSubsampleImageFilter.txx
This filter should be fully compatible with ITK.

I think it does just what you want when used with the Wavelet::INVERSE
template. Here, wavelet is a simple enum defined as
namespace Wavelet{enum WaveletDirection{FORWARD, INVERSE};}

Best regards,
Emmanuel

On Mon, Apr 5, 2010 at 02:40, Himanshu Neema <usc.himanshu at gmail.com> wrote:
> Hi,
> I want to resample (upsize) an image without interpolator inserting
> interpolated values. For example :
> image = 1 2 3
>              4 5 6
>              7 8 9
> I want resampled image to be : ( upsize by 2)
> interpolatedImage = 1 0 2 0 3 0
>                               0 0 0 0 0 0
>                               4 0 5 0 6 0
>                               0 0 0 0 0 0
>                               7 0 8 0 9 0
>                               0 0 0 0 0 0
> Basically I dont want resampler to use any interpolator , I just want zero
> padding in case of upsampling.
> Thanks for your help
> _____________________________________
> 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.html
>
> 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 Insight-users mailing list