[Insight-users] itk::BSplineDownsampleImageFilter

jef vdmb jvdmb at hotmail.com
Thu Feb 4 12:33:34 EST 2010


Hi,

I am using the bspline downsample filter in the 3.16 version

     typedef itk::BSplineResampleImageFilterBase<InputImageType, InputImageType> ResamplerType;
     typename itk::BSplineDownsampleImageFilter< InputImageType,InputImageType, ResamplerType >::Pointer df 
          = itk::BSplineDownsampleImageFilter< InputImageType,InputImageType, ResamplerType >::New();
        df->SetSplineOrder(3);
    df->SetInput(input);
    df->Update();

Unless I am using this filter incorrectly, it would seem that there is a problem with the filter. The output computed is wrong. The output image properties are set correctly (half the size, double the spacing,...) but the content of the original image is only portraited half in Y -dimension? This is not the case in the 3.8 version, the filter seems to have broken somewhere in between, probalby due to changes in the file 
itkBSplineResampleImageFilterBase.txx.

The result is the same for all resampler types:

    typedef itk::BSplineResampleImageFilterBase<InputImageType, InputImageType> ResamplerType;
    typedef itk::BSplineCenteredResampleImageFilterBase<InputImageType, InputImageType> CenteredResamplerType;
    typedef itk::BSplineL2ResampleImageFilterBase<InputImageType, InputImageType> L2ResamplerType;
    typedef itk::BSplineCenteredL2ResampleImageFilterBase<InputImageType, InputImageType> CenteredL2ResamplerType;

The Upsampler doesn't show the same issues, it works fine in both 3.16 and 3.8 versions.

Regards,
Jef



 		 	   		  
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/201469228/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100204/3c686153/attachment.htm>


More information about the Insight-users mailing list