From 000ac5b867a708575268c7c823db4fcbe727c2d6 Mon Sep 17 00:00:00 2001 From: dsarrut Date: Tue, 11 May 2010 09:06:09 +0000 Subject: [PATCH] - add other types/dim (warning still bugs ! do not use) --- filters/clitkResampleImageGenericFilter.txx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/filters/clitkResampleImageGenericFilter.txx b/filters/clitkResampleImageGenericFilter.txx index 9bd079b..a380824 100644 --- a/filters/clitkResampleImageGenericFilter.txx +++ b/filters/clitkResampleImageGenericFilter.txx @@ -28,7 +28,7 @@ namespace clitk { template ResampleImageGenericFilter::ResampleImageGenericFilter(): ImageToImageGenericFilter("Resample") { - // InitializeImageType<2>(); + InitializeImageType<2>(); InitializeImageType<3>(); InitializeImageType<4>(); } @@ -39,8 +39,8 @@ namespace clitk { template template void ResampleImageGenericFilter::InitializeImageType() { - // ADD_DEFAULT_IMAGE_TYPES(Dim); - ADD_IMAGE_TYPE(Dim, short); + ADD_DEFAULT_IMAGE_TYPES(Dim); + //ADD_IMAGE_TYPE(Dim, short); } //-------------------------------------------------------------------- @@ -89,7 +89,7 @@ namespace clitk { typename OutputImageType::SpacingType spacing; typename OutputImageType::SizeType size; if (mArgsInfo.spacing_given == 1) { - filter->SetIsoSpacing(mArgsInfo.spacing_arg[0]); + filter->SetOutputIsoSpacing(mArgsInfo.spacing_arg[0]); } else { if ((mArgsInfo.spacing_given != 0) && (mArgsInfo.size_given != 0)) { -- 2.47.1